草庐IT

buttonLabels

全部标签

android - PhoneGap 框架中 navigator.notification.confirm 中的按钮顺序

我在我的PhoneGap应用程序中使用了以下代码。functionregistrationCallBack(button){if(button==2){window.location.href="login.html";}}navigator.notification.confirm("Areyousure?",registrationCallBack,"Confirmation","Cancel,Ok");按钮的顺序在iPhone中正确显示为“取消”和“确定”。但对于Android,按钮的顺序是相反的。它以“确定”的形式出现,然后是“取消”。因此,按钮索引在回调方法中发生了变化。欢迎