我检查了该网站上与 toastr 和 IE 10 相关的一些帖子,这些帖子在运行时显示错误:
options = {
tapToDismiss: false,
toastClass: 'toast',
containerId: 'toast-container',
debug: false,
fadeIn: 300,
fadeOut: 1000,
extendedTimeOut: 1000,
iconClass: 'toast-info',
positionClass: 'toast-top-right',
timeOut: 5000,
titleClass: 'toast-title',
messageClass: 'toast-message'
};
toastr.success("Email Sent Successfully", "Email Sent");
面板显示,但随后抛出错误:
Line: 75 Error: Syntax error, unrecognized expression: Syntax error, unrecognized expression: focus
指的是jquery.min.js
{throw"Syntax error, unrecognized expression: "+g;}
最佳答案
看起来这是对旧版本 JQuery 的干扰 - 使用 JQuery 10,一切似乎都正常。
谢谢
关于javascript - Toastr 实现,在 IE 10 中显示错误后,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21941053/