当前位置: 移动技术网 > IT编程>开发语言>其他编程 > xmlHttp ie6下不跨域还提示没有权限,ie8下不会有这错误

xmlHttp ie6下不跨域还提示没有权限,ie8下不会有这错误

2017年12月08日  | 移动技术网IT编程  | 我要评论
url太长就会提示没有权限,ie8不会,这应该跟浏览器有关的
其实有个问题你注意一下就是,改成post 方式传就解决了
this.xmlhttp.open("post", this.url, true);
//alert('end');

this.xmlhttp.setrequestheader("content-length",this._data.length);
this.xmlhttp.setrequestheader("content-type","application/x-www-form-urlencoded");
this.xmlhttp.onreadystatechange = page;
this.xmlhttp.send(this._data);

by webxeyes 转载注明出处 http://blog.csdn.net/webxeyes

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网