var req = new XMLHttpRequest();
req.open('GET', document.location, false);
req.send(null);
var headers = req.getAllResponseHeaders().toLowerCase();
alert(headers);

js获取http请求响应头信息

 

相关文章:

猜你喜欢
相关资源
相似解决方案