How to initialize pages in jquery mobile? pageinit not firing

后端 未结 11 1258
死守一世寂寞
死守一世寂寞 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:08

    $(document).on("pageinit", "#myPage", function(event) {
       alert("This page was just enhanced by jQuery Mobile!");
    });
    

提交回复
热议问题