我的应用程序有几个 JS 提示,它似乎总是显示页面名称。
index.html
有没有办法将index.html更改为我的应用程序的名称或自定义文本。
示例:
我的应用程序//替换 .index.html var name=prompt("我是提示框!");
最佳答案
您可以使用以下代码
navigator.notification.confirm(
'My custom message', // message
myCallbackFunc, // callback with index of button pressed
'Header - App Name', // title
'btn1, btn2' // buttonLabels
);
希望有帮助。
关于javascript - 使用 PhoneGap HTML 在 iOS 中自定义 JavaScript 提示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14996006/