How to download jquery source code

If we want to download the 1.8.3 version of jquery, you only need to visit the address http://code.jquery.com/jquery-1.8.3.js (uncompressed version) or http://code.jquery.com/ jquery-1.8.3.min.js (compressed version)

If we want to download version 1.12.4 of jquery, the address to visit is http://code.jquery.com/jquery-1.12.4.js (uncompressed version) or http://code.jquery.com/jquery- 1.12.4.min.js (compressed version)

I found that there is no rule. All versions of jquery are placed in the root directory of the code.jquery.com website, and the file name format is jquery-version number.js. Therefore, which version of jquery you want just copy the above address and change The later version number is enough, isn't it very convenient.

Finally, by the way, there are still many friends who don't know which version of jquery to choose. Here is a brief mention.

Version 2.0 or above of jquery no longer retains compatibility with many conservative browsers, such as ie6, 7, and 8, but in order to take care of those who want to retain compatibility with older browsers and experience the new features of 2.0, jquery is officially in Versions 1.9.1~1.12.4 combine these two points. If you're worried about what you might miss with an older version of jquery, 1.9.1 to 1.12.4 are the best options.

However, some people say that version 1.9.1 has unpredictable bugs, and I have not experienced it specifically. 1.12.4 is a stable version released in May 2016, and it is also the ultimate version of jquery 1.0. It corresponds to 2.2 in 2.0. .4, that is, both functions and usage are the same, the difference is only in compatibility. I'm using 1.12.4 now, and I haven't had any problems, and I haven't seen any criticism of it on the Internet.

Although the 1.8.3 version is an old version, it is generally recognized as stable. Friends who are not at ease with 1.12.4 can choose this version. The difference between the two is hardly noticeable in your normal use. In terms of compatibility and size, there is no need to tangle. According to the information on the Internet, 1.7.1 and 1.4.2 are two absolutely classic versions. I personally think that these are too old, and they are just past glory, so they are not recommended.

Guess you like

Origin blog.csdn.net/weixin_44162077/article/details/128573905
Recommended