您的位置:首页 > 理论基础 > 计算机网络

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

2009-04-27 01:50 751 查看
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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
相关文章推荐