jQuery版本下载

jQuery Version Download

我想知道我需要哪个下载jQuery:https://jquery.com/download/, because I'd like to start making interactive websites

下载网站上有各种jQuery的解释,但我一点都不懂。 :D

Downloading jQuery

Compressed and uncompressed copies of jQuery files are available. The uncompressed file is best used during development or debugging; the compressed file saves bandwidth and improves performance in production. You can also download a sourcemap file for use when debugging with a compressed file. The map file is not required for users to run jQuery, it just improves the developer's debugger experience. As of jQuery 1.11.0/2.1.0 the //# sourceMappingURL comment is not included in the compressed file.

To locally download these files, right-click the link and select "Save as..." from the menu. link jQuery 1.x

The jQuery 1.x line had major changes as of jQuery 1.9.0. We strongly recommend that you also use the jQuery Migrate plugin if you are upgrading from pre-1.9 versions of jQuery or need to use plugins that haven't yet been updated. Read the jQuery 1.9 Upgrade Guide and the jQuery 1.9 release blog post for more information.

Download the compressed, production jQuery 1.11.2

Download the uncompressed, development jQuery 1.11.2

Download the map file for jQuery 1.11.2

jQuery 1.11.2 release notes link jQuery 2.x

jQuery 2.x has the same API as jQuery 1.x, but does not support Internet Explorer 6, 7, or 8. All the notes in the jQuery 1.9 Upgrade Guide apply here as well. Since IE 8 is still relatively common, we recommend using the 1.x version unless you are certain no IE 6/7/8 users are visiting the site. Please read the 2.0 release notes carefully.

Download the compressed, production jQuery 2.1.3

Download the uncompressed, development jQuery 2.1.3

Download the map file for jQuery 2.1.3

jQuery 2.1.3 release notes

谢谢, 水螅

您需要最新的 v1 或 v2 版本。如果您需要支持 IE8 或更早版本,请使用 v1(目前为 v1.11.2)。如果不这样做,请使用 v2(目前为 v2.1.3)。

对于开发,您可能需要 jQuery 的未压缩版本(尽管许多人甚至在开发中也只使用压缩版本)。对于生产,您需要压缩版本,或者从提供访问它的 CDN 之一加载它(而不是自己托管它)。我犹豫要不要让你回到你说你不明白的页面,但是有更多关于从 CDN here.

使用 jQuery 的信息