ajax请求设置header 我就是我 2022-06-09 08:58 175阅读 0赞 $.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) { } });
还没有评论,来说两句吧...