今天分析试了一下,有两个页面index.html和main_wdsp.html
发现在index.html中通过
$.mobile.changePage("main_wdsp.html?userid="+userId,"slidedown", true, true);
后来遍地找资料,发现对changepage说明是只加载dom中第一个page中的内容。于是我把切换的页面更改了一下
<div data-role="page" id="mainpage"> <script> $("#mainpage").live("pagecreate",function(){ alert("1"); }); </script> </div>
原文:http://blog.csdn.net/danielinbiti/article/details/18266569