jquery does not support ie8 because jQuery versions above jquery2.0 no longer support IE browsers of IE8 and below. The solution is to use jquery1.9 version.
The operating environment of this article: Windows7 system, jquery1.9, Dell G3 computer.
jquery does not support ie8?
JQuery version 2.0 or above no longer supports IE8 and below versions of IE browsers. Just use jquery1.9 version.
Solution:
Related issues:
Jquery no longer handles compatibility with lower versions of IE (IE6, IE7, IE8) starting from version 2.x . If you need to be compatible with lower versions of IE, it is recommended to use native JS or lower versions of Jquery1.x.
The general method is to write two or more sets of JS codes for the web page to adapt to different versions and types of browsers, and then use native JS to determine the browser model and version to load different JS files. The specific implementation method is as follows:
//判断是否为IE浏览器 if(navigator.appName == "Microsoft Internet Explorer") { if(navigator.appVersion.match(/7./i) == '6.' || navigator.appVersion.match(/7./i) == '7.' || navigator.appVersion.match(/7./i) == '8.'){ document.write(''); }else{ document.write(''); } }
Recommended: "jquery video tutorial"
The above is the detailed content of What should I do if jquery does not support ie8?. For more information, please follow other related articles on the PHP Chinese website!