function testJWT2() {
$.ajax({
beforeSend: function(request) {
request.setRequestHeader("jwtToken", "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9");
},
type:"GET",
url:"/sysUser/indexAjax",
success:function () {
alert("success");
}
})
}
ajax请求时request加请求头
最新推荐文章于 2024-08-18 22:00:33 发布