这是我的代码:
function onLoad(){
alert("onLoad");
document.addEventListener("deviceready",onDeviceReady, true);
}
function onDeviceReady(){
navigator.notification.alert("PhoneGap is working!!");
document.addEventListener("backbutton", onBackKeyDown, false);
}
function onBackKeyDown(e) {
navigator.notification.alert("PhoneGap handle back button click!!!");
/* want you to go back???
if yes go back or exit app
*/
}
你能帮我做吗
/* want you to go back???
if yes go back or exit app
*/
非常感谢。