扫码关注官方订阅号
js如何获取response header信息, 用sessionstatus=XMLHttpRequest.getResponseHeader("sessionStatus"); 获取到的为null。
麻烦大侠们看看怎么解决,截图如下:
var req = new XMLHttpRequest(); req.open('GET', document.location, false); req.send(null); var headers = req.getAllResponseHeaders().toLowerCase(); alert(headers);
看你写成了全小写、sessionStatus、写成驼峰试一下、
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
看你写成了全小写、sessionStatus、写成驼峰试一下、