jquery – 什么是替换$.browser

jQuery文档将$ .browser标记为已弃用。那么什么替代呢?

解决方法

docs状态:

The $.browser property is deprecated in jQuery 1.3,and its
functionality may be moved to a team-supported plugin in a future
release of jQuery.

似乎没有替代(你可以使用plugin)。

根据browser detectionnot a good idea.功能检测是要走的路(Modernizr一个伟大的工具)。

更新:jQuery有一个$ .support()方法来提供一些功能检测,但它现在已被废弃。 They also suggest using Modernizer now.

相关文章

页面搜索关键词突出 // 页面搜索关键词突出 $(function () {...
jQuery实时显示日期、时间 html: <span id=&quot...
jQuery 添加水印 <script src="../../../.....
中文:Sys.WebForms.PageRequestManagerParserErrorExceptio...
1. 用Response.Write方法 代码如下: Response.Write(&q...
Jquery实现按钮点击遮罩加载,处理完后恢复 思路: 1.点击按...