Javascript “如何删除标题”;“确认”;使用cordova在IOS应用程序的确认框中?
我试图从确认框中删除“确认”标题, 我在确认对话框中得到了页面名称,这看起来很尴尬Javascript “如何删除标题”;“确认”;使用cordova在IOS应用程序的确认框中?,javascript,cordova,Javascript,Cordova,我试图从确认框中删除“确认”标题, 我在确认对话框中得到了页面名称,这看起来很尴尬 请帮助我从确认对话框中删除标题。不要使用窗口。确认(),因为它使用WebView的内置确认对话框,该对话框看起来不太优雅,并且标题不可自定义 相反,请在项目中安装: cordova plugin add cordova-plugin-dialogs --save 然后,您可以使用自定义标题调用它: function onConfirm(buttonIndex) { alert('You selected
请帮助我从确认对话框中删除标题。不要使用
窗口。确认()
,因为它使用WebView的内置确认对话框,该对话框看起来不太优雅,并且标题不可自定义
相反,请在项目中安装:
cordova plugin add cordova-plugin-dialogs --save
然后,您可以使用自定义标题调用它:
function onConfirm(buttonIndex) {
alert('You selected button ' + buttonIndex);
}
navigator.notification.confirm(
'Your message', // message
onConfirm, // callback to invoke with index of button pressed
'Custom title', // title
['Button1','Button2'] // button labels
);
不要使用
window.confirm()
,因为它使用WebView的内置确认对话框,该对话框看起来不太优雅,并且标题不可自定义
相反,请在项目中安装:
cordova plugin add cordova-plugin-dialogs --save
然后,您可以使用自定义标题调用它:
function onConfirm(buttonIndex) {
alert('You selected button ' + buttonIndex);
}
navigator.notification.confirm(
'Your message', // message
onConfirm, // callback to invoke with index of button pressed
'Custom title', // title
['Button1','Button2'] // button labels
);
您是否正在使用
通知。确认?没有发生任何事情,我已经使用了我也在使用这个插件,并且想隐藏标题。但是根据文档,该参数是可选的,默认为“确认”,因此我认为如果您使用的是通知,则不可能这样做。确认?没有发生任何情况,我已经使用了我也在使用该插件,并且想隐藏标题。但根据文档,该参数是可选的,默认为“确认”,因此我认为这是不可能的