我使用onsen-ui v1.3.14。ons.notification。*生成错误
当我尝试使用ons.notification每一个功能,我得到一个错误:
错误:不确定是不是(评估“window.navigator.userAgent.match”) isAndroid @文件的对象:/ /.../onsenui_all.min.js:18:8206
并且随后:
类型错误:未定义不是(评价 'alertDialog.show')的对象 createAlertDialog onsenui_all.min.js:17: 19361
代码很简单:
ons.notification.alert({
message: "Message.",
title: "Title",
buttonLabel: "OK"
});
有没有在您的应用程序或浏览器任何修改'userAgent'? –