function qingqiu() {
var url1 = "http://api.iotfuns.net/login?phone_number=" + document.getElementById('username').value + "&password=" + document.getElementById('password').value
$.ajax({
type: "post",
url: url1,
success: alert("success")
});
var req = new XMLHttpRequest();
req.open('post',url1, false);
req.send(null);
var headers = req.getAllResponseHeaders();
alert(headers);
}
如何获取这个API的response headers信息
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-