方式一
$.ajax({
type: "GET",
url: "/access/getUser/" + userCode,
headers: {'Authorization': token}
});
方式二
$.ajax({
type: "GET",
url: "/access/getUser/" + userCode,
beforeSend: function(request) {
request.setRequestHeader("Authorization", token);
},
success: function(result) {
}
});
网友评论