This article mainly introduces you on how to choose the jquery version, is 1.x? 2.x or 3.x? Before choosing to use jquery, we often consider what version of jquery should be chosen. Now what version of jquery and jquery IE8 compatible version and jquery What version of the stability of the issue, the following through this article to see the detailed introduction.
Objective
Everyone in the choice of version, the general principle is the newer the better, but in fact, the jquery version is in continuous progress and development, the latest version is at that time the highest level of technology, but also the most advanced technical concept. How to choose the jquery version is a question worth thinking about, let's take a look at the detailed introduction below.
There are currently three major versions of jquery:
1.x: Compatible with ie678, the most widely used, the official only bug maintenance, function no longer new. So for general projects, the 1.x version is available, and the final version: 1.12.4 (May 20, 2016)
2.x: Incompatible with ie678, few people use, official only bug maintenance, function no longer new. If you do not consider a compatible low version of the browser can use 2.x, final version: 2.2.4 (May 20, 2016)
3.x: Incompatible ie678, only the latest browser is supported. Except for special requirements, the 3.x version is generally not used, and many old jquery plugins do not support this version. Currently this version is the official maintenance version of the main update.
1.X Large version, the subdivision version is very many, each version of the function will have a certain difference. Many of the tutorials you see online are mostly 1.x versions.
Official jquery Handbook: http://api.jquery.com/
Maintenance ie678 is the opinion headache thing, generally we will load a CSS and JS alone processing. Fortunately, the use of these browsers are gradually reduced, computer-side users have gradually been replaced by mobile users, if there is no special requirements, will generally choose to abandon the ie678 support.
How do I choose the jquery version?
Present situation
At present, the domestic ie occupation of the market share is relatively large, direct over to 2.x is unrealistic. The following is a copy of data from net market share, which shows that although Internet Explorer has declined, it still accounts for half of its share. In terms of Internet Explorer versions, IE 8.0 occupies a relatively large market share compared to other versions.
Who is the JQuery 2.x for?
Since jquery 2.x doesn't support older browsers, why develop this version?
To illustrate, this version is mainly used for some of the more advanced JS environment, that is, a newer version of the browser. These JS and old IE does not have much to do with, and jquery 1.x most of the code is the old browser compatibility, which increases the burden of running, affecting the efficiency of operation.
jquery Download Use
Here we recommend a page that can download various versions of jquery: http://www.cnblogs.com/wangyuman26/p/8691603.html
How do I choose jquery version 1.x? 2.x? 3.x?