How to initialize pages in jquery mobile? pageinit not firing

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

    Try this:

    $('div.page').live('pageinit', function(e) {
        console.log("Event Fired");
    });
    

提交回复
热议问题