This commit is contained in:
xuhe@fangjia.com
2018-03-20 13:47:13 +08:00
parent bb3e0fbc39
commit 4246382177
4 changed files with 33 additions and 32 deletions
-14
View File
@@ -127,20 +127,6 @@
}
});
$.oldBack = mui.back;
var backButtonPress = 0;
$.back = function(event) {
backButtonPress++;
if(backButtonPress > 1) {
plus.runtime.quit();
} else {
plus.nativeUI.toast('再按一次退出应用');
}
setTimeout(function() {
backButtonPress = 0;
}, 1000);
return false;
};
</script>
</body>