进入B页面后,希望通过连接进入C页面的:
<ul data-role="listview" data-inset="true">
<li><a href="C.html" data-refresh-ajax="false">C页面</a></li>
<li><a href="D.html" data-refresh-ajax="false">D页面</a></li>
</ul>
这个在模拟器下就直接是白屏(控制台没有错误提示),在CHROME下报的错误信息:Failed to load resource: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.
A、B、C、D都是在同一个目录下;
高手啊,有人知道不?
现在在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"),还是出上面一样的错,这又是什么原因呢?