jQuery 下载


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.

linkjQuery 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.3

Download the uncompressed, development jQuery 1.11.3

Download the map file for jQuery 1.11.3

jQuery 1.11.3 release notes

linkjQuery 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.4

Download the uncompressed, development jQuery 2.1.4

Download the map file for jQuery 2.1.4

jQuery 2.1.4 release notes

linkDownloading jQuery using Bower

jQuery is registered as a package with Bower. You can install the latest version of jQuery with the command:

bower install jquery

This will install jQuery to Bower's install directory, the default being bower_components. Within bower_components/jquery/dist/ you will find an uncompressed release, a compressed release, and a map file.

The jQuery Bower package contains additional files besides the default distribution. In most cases you can ignore these files, however if you wish to download the default release on its own you can use Bower to install jQuery from one of the above urls instead of the registered package. For example, if you wish to install just the compressed jQuery 2.1.0, you can install just that file with the following command:

bower install http://code.jquery.com/jquery-2.1.4.min.js

linkjQuery Migrate Plugin

We have created the jQuery Migrate plugin to simplify the transition from older versions of jQuery. The plugin restores deprecated features and behaviors so that older code will still run properly on jQuery 1.9 and later. Use the uncompressed development version to diagnose compatibility issues, it will generate warnings on the console that you can use to identify and fix problems. Use the compressed production version to simply fix compatibility issues without generating console warnings.

Download the compressed, production jQuery Migrate 1.2.1

Download the uncompressed, development jQuery Migrate 1.2.1

linkCross-Browser Testing with jQuery

Be sure to test web pages that use jQuery in all the browsers you want to support. The modern.IE site makes available virtual machines for testing many different versions of Internet Explorer. Older versions of other browsers can be found at oldversion.com.

linkjQuery Pre-Release Builds

The jQuery team is constantly working to improve the code. Each commit to the Github repo generates a work-in-progress version of the code that we update on the jQuery CDN. These versions are sometimes unstable and not suitable for production sites. We recommend they be used to determine whether a bug has already been fixed when reporting bugs against released versions, or to see if new bugs have been introduced. There are two versions, one for the compat branch (supports IE 8) and one for the master branch (not for use with old IE).

Download the work-in-progress jQuery Compat build

Download the work-in-progress jQuery build

linkUsing jQuery with a CDN

CDNs can offer a performance benefit by hosting jQuery on servers spread across the globe. This also offers an advantage that if the visitor to your webpage has already downloaded a copy of jQuery from the same CDN, it won't have to be re-downloaded.

linkjQuery's CDN provided by MaxCDN

To use the jQuery CDN, just reference the file directly from http://code.jquery.com in the script tag:

<script src="//code.jquery.com/jquery-1.11.3.min.js"></script>
<script src="//code.jquery.com/jquery-migrate-1.2.1.min.js"></script>

Starting with jQuery 1.9, sourcemap files are available on the jQuery CDN as well. If compressed files are included directly from the CDN as shown above, sourcemap-aware browsers such as Google Chrome will use them when you enable sourcemap support.

To see all available files and versions, visit http://code.jquery.com

linkOther CDNs

The following CDNs also host compressed and uncompressed versions of jQuery releases. Starting with jQuery 1.9 they may also hostsourcemap files; check the site's documentation.

Note that there may be delays between a jQuery release and its availability there. Please be patient, they receive the files at the same time the blog post is made public. Beta and release candidates are not hosted by these CDNs.

linkAbout the Code

jQuery is provided under the MIT license.

The code is hosted and developed in the jQuery GitHub repository. If you've spotted some areas of code that could be improved, please feel free to discuss it on the Developing jQuery Core Forum. If you'd like to participate in developing jQuery, peruse our contributor site for more information.

To find and download plugins developed by jQuery contributors, please visit the Plugins site. Plugin authors are responsible for maintenance of their plugins. Feedback on plugins should be directed to the plugin author, not the jQuery team.

linkBuild from Git

Note: To just use the latest work-in-progress version of jQuery, please try the jQuery Pre-Release Build described above.

All source code is kept under Git revision control, which you can browse online. The repository's README has more information on building and testing your own jQuery, as well as instructions on creating a custom build that excludes some APIs to reduce file size.

If you have access to Git, you can connect to the repository here:

git clone git://github.com/jquery/jquery.git

You can also check out and build a specific version of jQuery from GitHub:

git clone git://github.com/jquery/jquery.git
git checkout 1.2.6

The README file for a specific version will have instructions for building that version, as the process has changed over time.

linkPast Releases

All past releases can be found on the jQuery CDN.

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/zzh_my/article/details/49934447
个人分类: jQuery html
下一篇中央子午线 带号
想对作者说点什么? 我来说一句


2018年04月23日 109KB 下载


2017年09月13日 100KB 下载


2014年06月06日 2.8MB 下载