How to initialize pages in jquery mobile? pageinit not firing

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

    .live() is deprecated, suggestion is to use .on() in jQuery 1.7+ :

    
    

    Check the online doc for more information about .on(): http://api.jquery.com/on/

提交回复
热议问题