我正在设计JQuery移动应用程序,并面临一个问题,即有两页,1.aspx和2.aspx,i必须从第1页转至第2页,目前是使用窗户。 地点。 转方向的红利,但它也显示装货在地址。 为了避免这种情况,希望使用美元。
<<>Problem>:
After coming to page2 i want to execute the code written in Page2 load event,it s working fine with window.location.href,but while using mobile.changePage it is redirecting but load event is not firing,after coming to page2.aspx if i am refreshing the page it is loading, so my problem is while displaying page2.aspx load event has to fire. can anyone tell me why page2.aspx is not loading while using $.mobile.changePage if anyone knows the solution,please reply ASAP,its very urgent. Thanks in advance.
页: 1
Page1.aspx:
$.mobile.changePage("../Page2.aspx", { transition: "slide", changeHash: true, reverse: false });
<>strong>Page2.aspx:
$( div ).live("pageshow", function ()
{
$( #lblTest ).text("TestMessage");
}
现在,如果是这样写法的话,那页正在改变,但如果是第2页,则无论哪一部法典没有执行,则在装货时。
这是第二次提出这一问题,请帮助