【发布时间】:2012-11-14 23:19:54
【问题描述】:
我的主页是这样的:
<body>
<div id="MainPage" data-role="page">
<script>
$("#MainPage").live("pageinit", function () { ... });
</script>
...//I have a map and when I walk to the next page I delete the map.
</div>
</body>
我的下一页是这样的:
<body>
<div id="NextPage" data-role="page">
<script>
$("#NextPage").live("pageinit", function () {... });
</script>
<a data-res="btnBack" data-role="button" data-theme="b" href="MainPage.html"
data-icon="back" data-iconpos="left" onclick="document.MainPage.reload(true);">
</a>
...//I have a map and when I walk to the Main page I delete the map.
</div>
</body>
因为我删除了地图我必须重新加载主页并且它不起作用,所以主页不被识别为页面,因此没有重新加载功能。
谁能帮忙?
【问题讨论】:
-
主页不被识别为页面,我在控制台窗口中测试过,我认为是这个问题!有谁知道为什么他不被识别为页面?我写: data-role = "page" 到 div
标签: javascript jquery html google-maps jquery-mobile