网络编程 
首页 > 网络编程 > 浏览文章

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

(编辑:jimmy 日期: 2024/5/10 浏览:3 次 )
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

上一篇:Eclipse 格式化代码时不换行与自动换行的实现方法
下一篇:页面制作统一的头尾的方法(asp+js)
友情链接:杰晶网络 DDR爱好者之家 南强小屋 黑松山资源网 白云城资源网