Downloading jQuery 3.2.1
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
For help when upgrading jQuery, please see the upgrade guide most relevant to your version. We also recommend using the jQuery Migrate plugin.
Download the compressed, production jQuery 3.2.1
Download the uncompressed, development jQuery 3.2.1
Download the map file for jQuery 3.2.1
You can also use the slim version:
Download the compressed, production jQuery 3.2.1 slim build
Download the uncompressed, development jQuery 3.2.1 slim build
Download the map file for the jQuery 3.2.1 slim build
linkDownloading jQuery using npm
jQuery is registered as a package on npm. You can install the latest version of jQuery with the command:
1
|
npm install jquery |
This will install jQuery in the node_modules
directory. Within node_modules/jquery/dist/
you will find an uncompressed release, a compressed release, and a map file.
linkDownloading jQuery using Bower
jQuery is also registered as a package with Bower. You can install the latest version of jQuery with the command:
1
|
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 file, you can install just that file with the following command:
1
|
bower install https://code.jquery.com/jquery-3.2.1.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 newer versions of jQuery. 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 productionversion to simply fix compatibility issues without generating console warnings.
There are two versions of Migrate. The first will help you update your pre-1.9 jQuery code to jQuery 1.9 up to 3.0. You can get that version here:
Download the compressed, production jQuery Migrate 1.4.1
Download the uncompressed, development jQuery Migrate 1.4.1
The second version helps you update code to run on jQuery 3.0 or higher, once you have used Migrate 1.x and upgraded to jQuery 1.9 or higher:
Download the compressed, production jQuery Migrate 3.0.0
Download the uncompressed, development jQuery Migrate 3.0.0
linkCross-Browser Testing with jQuery
Be sure to test web pages that use jQuery in all the browsers you want to support. The Microsoft Developer Resources 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 never 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.
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
The jQuery CDN supports Subresource Integrity (SRI) which allows the browser to verify that the files being delivered have not been modified. This specification is currently being implemented by browsers. Adding the new integrity attribute will ensure your application gains this security improvement as browsers support it.
To use the jQuery CDN, just reference the file in the script tag directly from the jQuery CDN domain. You can get the complete script tag, including Subresource Integrity attribute, by visiting https://code.jquery.com and clicking on the version of the file that you want to use. Copy and paste that tag into your HTML file.
Starting with jQuery 1.9, sourcemap files are available on the jQuery CDN. However, as of version 1.10.0/2.1.0 the compressed jQuery no longer includes the sourcemap comment in CDN copies because it requires the the uncompressed file and sourcemap file to be placed at the same location as the compressed file. If you are maintaining local copies and can control the locations all three files, you can add the sourcemap comment to the compressed file for easier debugging.
To see all available files and versions, visit https://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 host sourcemap 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:
1
|
git clone git://github.com/jquery/jquery.git |
You can also check out and build a specific version of jQuery from GitHub:
1
2
|
git clone git://github.com/jquery/jquery.git git checkout 1.2.6 |
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用户运行所需jQuery,只是提高了开发人员的调试经验。 在jQuery 1.11.0/2.1.0 / / # sourceMappingURL
评论是 不包括在压缩文件中。
本地下载这些文件,右键单击链接并选择“另存为… 从菜单中”。
链接jQuery
寻求帮助当升级jQuery,请参阅 升级指南与你最相关的版本。 我们也推荐使用 jQuery插件迁移。
您还可以使用苗条版本:
链接下载jQuery使用npm
jQuery是注册为 一个包在 npm。 你可以安装最新版本的jQuery命令:
1
|
npm安装jquery |
这将安装jQuery node_modules
目录中。 在 node_modules / jquery / dist /
你会发现一个未压缩的版本,一个压缩版本,和一个映射文件。
链接下载jQuery使用鲍尔
jQuery还注册作为一个包 鲍尔。 你可以安装最新版本的jQuery命令:
1
|
鲍尔安装jquery |
这将安装jQuery鲍尔的安装目录,默认 bower_components
。 在 bower_components / jquery / dist /
你会发现一个未压缩的版本,一个压缩版本,和一个映射文件。
jQuery鲍尔包包含额外的文件除了默认的分布。 在大多数情况下可以忽略这些文件,但是如果您希望下载默认版本的可以使用鲍尔安装jQuery从上面的url,而不是注册包。 例如,如果您希望安装jQuery的压缩文件,你可以安装,文件使用下面的命令:
1
|
鲍尔安装https: / /code.jquery.com/jquery-3.2.1.min.js |
链接jQuery插件迁移
我们创建了 jQuery插件迁移从老版本的jQuery来简化转变。 插件恢复弃用功能和行为,这样老代码仍将jQuery的较新版本上运行正常。 使用 未压缩的发展 版本兼容性问题诊断,它将生成警告控制台,您可以用它来识别和解决问题。 使用 压缩生产 版本简单地解决兼容性问题,没有生成控制台警告。
有两个版本的迁移。 第一个将帮助您更新您的pre - 1.9 jQuery代码jQuery 1.9到3.0。 在这里你可以得到这个版本:
第二个版本可以帮助你更新代码运行在jQuery 3.0或更高版本, 一旦你使用迁移1。 x和升级到jQuery 1.9或更高版本 :
链接与jQuery跨浏览器测试
一定要在所有的浏览器中测试网页,使用jQuery你想支持。 的 微软的开发人员资源网站提供 虚拟机用于测试许多不同版本的Internet Explorer。 可以发现旧版本的浏览器 oldversion.com。
链接jQuery预发行版本
jQuery团队不断努力改善代码。 每个提交到Github回购生成一个工作版本的代码,我们更新jQuery的CDN。 这些版本有时不稳定,不适合生产基地。 我们建议他们被用来决定是否一个bug报告bug时已经固定的发布版本,或是否已引入新的错误。
链接使用jQuery的CDN
发布商可以通过在服务器上托管jQuery提供性能优势在全球范围内传播。 这也提供了一个优势,如果用户访问你的网页已经下载jQuery从同一CDN的副本,它不会重新下载。
链接jQuery提供的CDN MaxCDN的
jQuery CDN支持 子资源的完整性(SRI),允许浏览器确认交付的文件没有被修改。 这 规范目前正在实施的浏览器。 添加新属性完整性将确保您的应用程序获得这个安全改进浏览器都支持它。
使用jQuery CDN,只是参考的文件直接从jQuery脚本标记CDN域。 你可以得到完整的脚本标记,包括子资源整体属性,通过访问 https://code.jquery.com,点击您想要使用的版本的文件。 标签复制并粘贴到您的HTML文件。
从jQuery 1.9开始, sourcemap文件jQuery CDN上都是可用的。 然而,随着版本1.10.0/2.1.0压缩jQuery不再包含在CDN副本sourcemap评论,因为它需要的未压缩的文件和sourcemap文件压缩文件放置在相同的位置。 如果你是维护本地副本,可以控制这三个文件的位置,您可以添加sourcemap评论到压缩文件更易于调试。
看到所有可用的文件和版本,请访问 https://code.jquery.com
链接其他发布商
以下发布商也主机压缩和未压缩版本的jQuery版本。 jQuery 1.9开始他们也可能主机 sourcemap文件; 检查网站的文档。
请注意,可能会有延迟jQuery版本及其可用性之间。 请耐心等待,他们收到文件同时博客是公开。 β和候选版本不是由这些发布商。
链接关于代码
jQuery提供下 麻省理工学院的许可。
托管代码和开发的 jQuery GitHub库。 如果你发现了一些地区的可以改进的代码,请在讨论它 jQuery核心发展论坛。 如果你想参与开发jQuery,我们细读 贡献者的网站为更多的信息。
查找和下载jQuery插件开发的贡献者,请访问 插件的网站。 插件作者负责维护他们的插件。 反馈插件应该针对插件作者,不是jQuery团队。
链接构建从Git
注意: 使用jQuery的最新工作版本,请上述jQuery预发布构建。
所有的源代码保持Git版本控制下,你可以在网上浏览。 存储库的 自述有更多的信息构建和测试自己的jQuery,以及指示创建一个自定义构建,排除了一些api来减少文件大小。
如果你访问Git,你可以连接到存储库:
1
|
git克隆git:/ /github.com/jquery/jquery.git |
你也可以看看,建立一个特定版本的jQuery从GitHub:
1
2
|
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.
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.
Downloading jQuery 3.2.1的更多相关文章
- Downloading jQuery
Compressed and uncompressed copies of jQuery files are available. The uncompressed file is best used ...
- [译] jQuery 3 有哪些新东西
转自:https://github.com/cssmagic/blog/issues/59 jQuery 的横空出世,至今已有十个年头了,而它的长盛不衰显然不是没有理由的.jQuery 提供了极为友好 ...
- fundamentals of the jQuery library
1.why is jquery Only 32kB minified and gzipped. Can also be included as an AMD module Supports CSS3 ...
- JQuery:介绍、安装、选择器、属性操作、动画
目录 jQuery 详细内容 1.JQuery介绍 2.JQuery的下载安装 3.JQuery的使用 4.jQuery的选择器 5.JQuery的属性操作 6.动画 6.自定义动画 jQuery 详 ...
- Jquery easyui datagrid 导出Excel
From:http://www.cnblogs.com/weiqt/articles/4022399.html datagrid的扩展方法,用于将当前的数据生成excel需要的内容. 1 <sc ...
- 【JS】Intermediate6:jQuery
1.jQuery is far and away the most popular DOM library Used to allow modification and control of the ...
- Could not fetch https://api.github.com/repos/RobinHerbots/jquery
使用 composer 安装YII2时, 如题所示提示, 原因是由于yii安装中, 需要有一些相关的认证[或许说是composer的认证], 如有如下提示 Could not fetch https: ...
- (2)入门指南——(2)jQuery可以做什么(What jQuery does)
The jQuery library provides a general-purpose abstraction layer for common web scripting, and is, th ...
- jquery.i18n.properties.js hacking
/****************************************************************************** * jquery.i18n.proper ...
随机推荐
- VIM简单配置(windows)
set number set history=1000000 set tabstop=4 set shiftwidth=4 set smarttab set nocp filetype plugin ...
- STM32F4 How do you generate complementary PWM Outputs?
How do you generate complementary PWM Outputs? I would like to generate complementary PWM Outputs wi ...
- JavaScript 扩展运算符
扩展运算符格式扩展运算符格式很简单,就是三个点(...) 扩展运算符作用???扩展运算符允许一个表达式在期望多个参数(用于函数调用)或多个元素(用于数组字面量)或多个变量(用于解构赋值)的位置扩展. ...
- 华为正在力挺的NB-IoT是什么鬼! - 全文
NB-IoT,Niubility Internet of Thing,即牛掰的物联网技术. 关于物联网,小编想从2款很有趣的应用说起. 这不是在播限制级.这是Nake Labs推出的3D健身镜,这款智 ...
- 安装APK的错误码(PackageManager.java)
安装APK的错误码,定义在android源码中的这个文件中:frameworks\base\core\java\android\content\pm\PackageManager.java /** * ...
- QQ去除未读状态的动画
QQ去除未读状态的动画 by 伍雪颖 watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvcmFpbmxlc3Zpbw==/font/5a6L5L2T/fonts ...
- c++ Pthread创建线程后必须使用join或detach释放线程资源
http://www.cppblog.com/prayer/archive/2012/04/23/172427.html 这两天在看Pthread 资料的时候,无意中看到这样一句话(man pthre ...
- Codeforces 394D Physical Education and Buns 胡搞
题目链接:点击打开链接 题意:给定n个数的序列(能够排序) 操作一次能够使得某个数++或--. 问最少操作几次使得序列变成一个等差序列 输出: 第一行输出最少操作的次数 第二行输出等差数列里的最小项 ...
- 【 D3.js 入门系列 --- 2 】 怎样使用数据和选择元素
本人的个人博客首页为: http://www.ourd3js.com/ ,csdn博客首页为:http://blog.csdn.net/lzhlzz/. 转载请注明出处,谢谢. 接着上一讲的内容,这 ...
- Orchard之Module升级
在上一篇中,我们提到了 Migrations,这一篇稍微衍生一下. 1:Migrations 是什么 Orchard 提供了模块升级的功能,即,如果我们模块发布后,需要进行升级,我们可以通过编码来实现 ...