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