gpt4 book ai didi

javascript - Phonegap 基于网络的应用程序 "Alert"显示页面名称

转载 作者:行者123 更新时间:2023-11-28 19:01:48 25 4
gpt4 key购买 nike

我有一个 iPhone 网络应用程序,我通过 PhoneGap 使用 UIWebView 选项。

当提醒时它显示 html 页面的名称: enter image description here如何隐藏它 (login.html)?

我将 alert 函数与 JavaScript 一起使用:

alert("Email and Password do not match.");

最佳答案

是的,在 ios 中 phonegap 页面将在警报中显示页面名称。您需要使用通知插件来避免这种情况。

这是插件

http://cordova.apache.org/docs/en/3.3.0/cordova_notification_notification.md.html#Notification

你只需要对话框插件,不需要振动

 cordova plugin add org.apache.cordova.dialogs

要使用它,你需要

 navigator.notification.alert(
'You are the winner!', // message
alertDismissed, // callback
'Game Over', // title
'Done' // buttonName
);

关于javascript - Phonegap 基于网络的应用程序 "Alert"显示页面名称,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24293212/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com