jquery 修改http头信息的方法:
?
$.ajax() {
?
.....
?
beforeSend:function(xhr) {
xhr.setRequestHeader("my_action", "login");
xhr.setRequestHeader("my_version", "1.0");
},
?
......
?
};
jquery 修改http头信息的方法:
?
$.ajax() {
?
.....
?
beforeSend:function(xhr) {
xhr.setRequestHeader("my_action", "login");
xhr.setRequestHeader("my_version", "1.0");
},
?
......
?
};