0
$(document).on("pagebeforeshow", function(event) {
$("#mybtn").on("click", function(e) {
$.mobile.showPageLoadingMsg();
$.mobile.changePage("twitter.html", {
reloadPage: false, changeHash: true,
});
$('#mybtn').unbind('');
});
});
u能告诉我为什么拆散是jQuery Mobile的重要,请告诉我最好的方式来解除绑定events.I使用下面绑定的方式和取消绑定events.Is该行绑定和取消绑定活动
的$(document)。在( 'click.register', '.registerSubmitter',函数(E){// 做一些 }); 你对这种方法有什么看法 http://stackoverflow.com/questions/10950443/how-to-properly-unbind-events-in-jquery-mobile-using-on-off-when-a-page-is -kept – user2889058