//1、ajax发送带header参数的请求
$.ajax({
type: "get",
url: "http://localhost:8081/project/sign/userInfo",
dataType:"json",
success: function (data) {
debugger
},
beforeSend: function (XMLHttpRequest) {
XMLHttpRequest.setRequestHeader("userKey", "admin");
}
});