0

我在带有 phonegap 的 jquery 移动应用程序中有三个单个 html 页面。从一个页面 onChange 事件调用第二个页面。但是第二页 pageinit 在该页面关闭后立即调用并转到第三页。我没有在页面初始化或其他一些元素中调用第三页。在 jquery mobile changepage 事件中是否存在类似这样的已知问题?

//called from first page link button 
function mysubmit()
{
    $.mobile.changePage("secondpage.html",{reloadPage:true,transition: "none"});
}


//This event fired
$(document).delegate("#secondpage_id", "pageinit", function() {
  alert('secondpage_id was just created by jQuery Mobile!');
});

触发后,它关闭了第二页并显示了第三页。

4

1 回答 1

0

data-rel=back这是通过从第一页链接按钮中删除属性来解决的。

于 2012-08-25T07:04:35.483 回答