を使用して phonegap にキャンセル ボタンと OK ボタンを作成する方法PhoneGap.exec(null, null, "Notification", "activityStart", ["Downloading file","Please wait..."]);
2 に答える
1
navigator.notification.confirm(
'Do you want to signout and close the application?', // message
onConfirm, // callback to invoke with index of button pressed
'Sign Out', // title
'Sign Out,Cancel' // buttonLabels
);
と
function onConfirm(button) {
//action for confirmation
}
参照 http://docs.phonegap.com/en/1.2.0/phonegap_notification_notification.md.html
于 2012-09-17T05:28:10.107 に答える