var req = new XMLHttpRequest(); req.open('GET', document.location, false); req.send(null); var headers = req.getAllResponseHeaders().toLowerCase(); alert(headers);
js获取http请求响应头信息
猜你喜欢
转载自www.cnblogs.com/alex-415/p/10620013.html
今日推荐
周排行