1

我正在创建一个 iOS Phonegap 应用程序。我在其中使用来自http://docs.phonegap.com/en/1.0.0/phonegap_notification_notification.md.html的脚本

// Show a custom alert

function showAlert() {
    navigator.notification.alert(
      "Do you really want to delete this item?",  // message
        alertDismissed,         // callback
        "Delete",            // title
        "Ok, Cancel"                  // buttonName
    );
}

 // alert dialog dismissed
         function alertDismissed() {
 //      alert("Test this");// write your necessary code here
}

我在我的 html 中调用了 .js 文件

我遇到的问题很奇怪。我单击按钮以查看我的应用程序中的弹出窗口,但没有任何反应。但是,如果我关闭并重新打开应用程序,我会看到弹出窗口,这是我之前应该看到的!

有人可以帮忙吗!

4

0 回答 0