更新到jQuery 1.9.1后出现browser.msie错误 [英] browser.msie error after update to jQuery 1.9.1
本文介绍了更新到jQuery 1.9.1后出现browser.msie错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用以下脚本片段:
if ($.browser.msie && $.browser.version < 9) {
extra = "?" + Math.floor(Math.random() * 3000);
}
它与 jQuery 1.8.3 一起正常工作.
现在,我将jQuery更新为新版本 1.9.1 ,以使用新脚本.
现在我收到以下错误:
Now I updated jQuery to the new version 1.9.1 to use a new script.
Now I get the following error:
TypeError:无法读取未定义的属性"msie"
TypeError: Cannot read property 'msie' of undefined
我阅读了新jQuery版本的更改日志,但没有任何更改
与 msie
I read the change log of the new jQuery version, but nothing should have changed
with msie
任何已知的错误,技巧或建议吗?
Any known bugs, tips or proposals?
推荐答案
$.browser
在1.3版中已弃用,在1.9版中已删除
$.browser
was deprecated in version 1.3 and removed in 1.9
您可以通过查看文档来对此进行验证.
You can verify this by viewing the documentation.
这篇关于更新到jQuery 1.9.1后出现browser.msie错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文