源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

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

  • 时间:2020-05-18 03:02 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:xmlHttp ie6下不跨域还提示没有权限,ie8下不会有这错误
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
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部