jQuery 1.6浏览器检测 [英] jQuery 1.6 Browser detection

查看:83
本文介绍了jQuery 1.6浏览器检测的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在jquery中进行所有这些api更改后,在jQuery中检测浏览器名称和版本的最新最佳做法是什么?

With all these api changes in jquery, what is the 'latest' best practice to detect browser name and version in jQuery?

此外,jquery是推荐的语言检测浏览器还是我应该使用服务器端?

Also, is jquery the recommended language to detect browsers or should I use server-side?

推荐答案

你想避免浏览器检测&而不是做特征检测。浏览器检测可以很容易伪造&因此是不可靠的。请参阅有关此主题的 John Resig的精彩帖子

You want to avoid browser detection & instead do feature detection.browser detection can be easily faked & therefore is unreliable. see a nice post by John Resig on this subject.

了解更多详情,Google用于浏览器检测与功能检测

for more details, Google for "Browser detection versus feature detection"

这篇关于jQuery 1.6浏览器检测的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆