0
這裏是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
- pageshow
- deviceready
- pagecreate
- pageinit
- 頁面加載
您是否嘗試過pagechange –
是的,pagechange也沒有被解僱...... –
我無法理解您的代碼。請使用此鏈接我想您可能會從中獲得幫助http://1.bp.blogspot.com /-YfTMZd-Ta0o/UGpmlFqH_4I/AAAAAAAAATI/BwA8SSSFGkM/s1600/fig1-jqm-page-eventsF.png –