javascript - Toastr 实现,在 IE 10 中显示错误后

标签 javascript jquery

我检查了该网站上与 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/

相关文章:

javascript - 为 Windows 8 和 10 创建单一版本

javascript - 使用 <a> 标签在 JqueryUI 选项卡中导航

php - 如何获取 PHP 脚本以将数据馈送到 JQuery 自动完成中?

jquery - jQuery 模板中的条件运算符

javascript - 使用 ws : Can't deserialize 通过 websocket 发送对象

JavaScript 不改变元素的样式

javascript - Google Maps API - 按关键字定位/中心(城市名称)

javascript - 如何限制定期向其中添加消息的 DIV 中的文本量?

javascript - 为什么 lodash 的 _.sum() 函数会导致 Vuejs 对象失败

javascript - 如何在 Angular JS 路由中向一个 View 添加多个 Controller