await $.ajax({
url: "v1/record",
type: "POST",
headers: { "content-type": "appication/json", "SLIEND": "XGH" },
data: JSON.stringify({
"username": "xxx",
"password": "ecd"
}),
success: function (response.headers) {
console.log(response.headers);
}
});
如何从发送一个ajax http请求中获取返回的响应头?response.headers
目前还不支持,后续会优化功能的