我不仅需要使用jQuery检测浏览器类型,还需要检测版本. 大多数情况下,我需要找出它是否是IE8.
I am not sure if I am doing it correctly.
如果我这样做:
if (jQuery.browser.version >= 8.0) {
dosomething}
I am not sure it will work for version 8.123.45.6 or will it?
Edit: Note that JQuery 2+ has dropped support for IE8 and below, and therefore can no longer be used to detect IE8. If using a current version of JQuery, it is necessary to use a Non-JQuery solution.