作者: ybbihatj 时间: 2014-2-14 10:05
在CHROME下运行,看了调试工具下的错误信息:Failed to load resource: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.
这是怎么回事呢?作者: ybbihatj 时间: 2014-2-14 10:46
高手啊,有人知道不?
现在在A页面把这个$.mobile.changePage("b.html")改成$.mobile.loadPage("b.html"),能显示了,但不知道什么原因;
然后现在在B页面通过<a href="C.html">访问C页面,又出现Failed to load resource: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.
再试<a href="#" onclick="test()">在test方法里也用$.mobile.loadPage("C.html"),还是出上面一样的错,这又是什么原因呢?