$.ajax({
url: "http://abc.de.com",
dataType: 'json',
type: 'GET',
beforeSend: function (xhr) {
xhr.setRequestHeader("token", "tokenvalue");
},
async: false,
cache: false,
//contentType: 'application/x-www-form-urlencoded',
success: function (sResponse) {
}
});
ajax请求设置header
最新推荐文章于 2024-05-24 11:14:56 发布