How to initialize pages in jquery mobile? pageinit not firing

后端 未结 11 1244
死守一世寂寞
死守一世寂寞 2020-11-29 01:44

What\'s the right way to initialize objects on a jquery mobile page? The events docs say to use \"pageInit()\" with no examples of that function, but give exam

11条回答
  •  暖寄归人
    2020-11-29 02:03

    The easiest way I found to deal with this was to use JQM + Steal. It works like a charm as long as you put:

    
    

    Inside of the data-role='page' div.

    Then use AJAX to connect anything that can use the same mypage.js and use an external link (by using the rel="external" tag) to anything that requires a different steal page.

提交回复
热议问题