JQuery, starting with version 1.9, removed $.browser and $.browser.version and replaced it with $.support. In the updated version 2.0, IE 6/7/8 will no longer be supported. Later, if the user needs to support IE 6/7/8, only jQuery 1.9 can be used. If you want to fully support IE, and mix with JQuery 1.9 and 2.0, the official solution
JQuery, starting with version 1.9, removed $.browser and $.browser.version and replaced it with $.support. In the updated version 2.0, IE 6/7/8 will no longer be supported. Later, if the user needs to support IE 6/7/8, only jQuery 1.9 can be used. If you want to fully support IE and mix jQuery 1.9 and 2.0, the official solution is:
<!--[If Lt IE 9]
<script src= ' jquery-1.9.0.js ' </script
<! [endif]--
<!--[if GTE IE 9]
<script src= ' jquery-2.0.0.js ' </script
<! [endif]--Zero technology in the long run, this facilitates in complex situations according to the browser characteristics of the separate processing, rather than simply detect browser type and version. But now many of the old procedures are not migrated directly to the browser support features, so on the Internet to find some solutions that can be directly replaced.
To determine the browser type:
$.browser.mozilla =/firefox/.test (Navigator.userAgent.toLowerCase ());
$.browser.webkit =/webkit/.test (Navigator.userAgent.toLowerCase ());
$.browser.opera =/opera/.test (Navigator.userAgent.toLowerCase ());
$.browser.msie =/msie/.test (Navigator.userAgent.toLowerCase ());
The expression after the equal sign returns the True/false, which can be used directly to replace the original $.browser.msie.
Check if ie6//oldif ($.browser.msie && 7 $.browser.version) {}//newif (' undefined ' = = typeof (DOCUMENT.BODY.STYLE.M axheight)) {}
Check for IE 6-8
if (!$.support.leadingwhitespace) {}
JQuery 1.9 does not support $.browser how to determine browser type and version