JQuery移动页面中的页面加载事件

JQuery移动页面中的页面加载事件,jquery,jquery-mobile,Jquery,Jquery Mobile,从文档: 我在JQM页面中有ff: $(document).bind('pageinit',function(event){ //some code here }); 该页面是通过JQM页面中的ajax加载的,但根本没有被触发。如何让它工作 谢谢试试这个,这是医生发来的 $( '#aboutPage' ).live( 'pageinit',function(event){ alert( 'This page was just enhanced by jQuery Mobile!'

从文档:

我在JQM页面中有ff:

$(document).bind('pageinit',function(event){
    //some code here
});
该页面是通过JQM页面中的ajax加载的,但根本没有被触发。如何让它工作


谢谢

试试这个,这是医生发来的

$( '#aboutPage' ).live( 'pageinit',function(event){
  alert( 'This page was just enhanced by jQuery Mobile!' );
});

该页面是单个jqm页面
$( '#aboutPage' ).live( 'pageinit',function(event){
  alert( 'This page was just enhanced by jQuery Mobile!' );
});