http://johnvey.com/features/deliciousdirector/web-service-broker.html 找到的解释是 document.domain property that is set, but is considered null by the security model until it is set explicitly. Unfortunately, XmlHTTPRequest objects are not affected by the document.domain property. XmlHTTPRequest will only fetch documents from the originating server. In fact, you have to specify a relative URL, since it completely ignores any URL's with a fully-qualified domain name. 我还是死了这条心吧.
ajax document.domain不能用于xmlhttp对象
转载本文章为转载内容,我们尊重原作者对文章享有的著作权。如有内容错误或侵权问题,欢迎原作者联系我们进行内容更正或删除文章。
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
Pomelo游戏开发中的domain对象
介绍Pomelo游戏开发中的domain对象概念及使用技巧。
pomelo domain bearcat treasures -
通过document.domain + iframe解决跨域问题
document.domain用来得到当前网页的域名。比如在百度(https://www.baidu.com)页面控
document.domain 跨域 html html页面 -
XmlHttp - Ajax技术
XmlHttp是什么?最通用的定义为:XmlHttp是一套可以在Javascript、VbScript、Jscript等脚本语言
XmlHttp Ajax get post ajax -
Iframe, onload 与 document.domain
链接:http://www.nczonline.net/blog/2009/09/15/iframes-onload-and-documentdomain/ 译者:Dem
iframe load window js javascript