【发布时间】:2013-10-31 07:55:09
【问题描述】:
这里是 index.html
<script>
$(document).on('pagebeforeshow','id="container"', function(){
$.mobile.activePage.find('id="content-container"').load("content.html", function(){
$(this).parent().trigger('pagecreate');
});
});
</script>
content.html 页面在加载时必须从服务器检索数据。
执行上述代码时,content.html 页面中会触发哪个事件?
我已经尝试了以下事件,但它们都不起作用
- pagebeforeshow
- 页面展示
- 设备就绪
- 页面创建
- pageinit
- 页面加载
【问题讨论】:
-
你试过换页了吗
-
是的,pagechange 也不会被解雇...
-
我无法理解你的代码。使用这个链接我想你可以从中得到帮助1.bp.blogspot.com/-YfTMZd-Ta0o/UGpmlFqH_4I/AAAAAAAAATI/…
-
'$('content').load('conent.html')'..当 content.html 开始使用 ajax 加载时,加载时在 content.html 中触发事件 填充数据..
-
您找到解决方案了吗
标签: cordova jquery-mobile jquery-events