jQuery最新$ .browser [英] jQuery latest $.browser
问题描述
可能重复:
是否已弃用jQuery $ .browser?
Possible Duplicate:
Is jQuery $.browser Deprecated?
最新的jQuery库是否已更改$.browser
?
当我在firefox中运行此(小提琴)时,我在控制台中收到错误:TypeError: obj is undefined
Did the latest jQuery library change $.browser
?
When i run this (fiddle) in firefox, im getting an error in console:TypeError: obj is undefined
推荐答案
已弃用了很长一段时间.并且从1.9开始已被删除.
It was deprecated for a long while. And has been removed since 1.9.
要仍然能够使用$.browser
,您应该添加以下JS,或访问 github 上的项目>:
To still be able to use the $.browser
you should add the following JS, or visit the project on github:
<script src="http://code.jquery.com/jquery-migrate-1.0.0.js"></script>
请参阅1.9版变更日志:
http://blog .jquery.com/2013/01/15/jquery-1-9-final-jquery-2-0-beta-migrate-final-released/
See the version 1.9 changelog:
http://blog.jquery.com/2013/01/15/jquery-1-9-final-jquery-2-0-beta-migrate-final-released/
有关升级的更多信息
http://jquery.com/upgrade-guide/1.9/
More info on upgrading
http://jquery.com/upgrade-guide/1.9/
这篇关于jQuery最新$ .browser的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!