$( document ).bind( "pageload", function( event, data ) { dialog初始化函数; }); $(document).ready(function() { 初始化主页面; });