喜大普奔!jQuery发布 3.0 最终版


Posted in Javascript onJune 12, 2016

jQuery 3.0 最终版发布了。jQuery 3.0将是jQuery的未来。但如果你需要IE6-8支持,您可以继续使用最新版本1.12。

为了帮助用户升级,jQuery 发布了全新的3.0升级指南,以及 jQuery Migrate 3.0 插件将帮助您识别代码中的兼容性问题。

您可以从jQuery CDN获取文件,或者直接访问链接:

  • https://code.jquery.com/jquery-3.0.0.js

  • https://code.jquery.com/jquery-3.0.0.min.js

您也可以从以下npm获得更新:

npm install jquery@3.0.0

此外,jQuery Migrate 3.0 也更新了。地址:

  • https://code.jquery.com/jquery-migrate-3.0.0.js

  • https://code.jquery.com/jquery-migrate-3.0.0.min.js

npm install jquery-migrate@3.0.0

更新日志:

Ajax

  • Golf away 21 bytes (eaa3e9f)

  • Preserve URL hash on requests (#1732, e077ffb)

  • Execute jQuery#load callback with correct context (#3035, 5d20a3c)

  • Ensure ajaxSettings.traditional is still honored (#3023, df2051c)

  • Remove unnecessary use of jQuery.trim (0bd98b1)

Attributes

  • Avoid infinite recursion on non-lowercase attribute getters (#3133, e06fda6)

  • Add a support comment & fix a link @ tabIndex hook (9cb89bf)

  • Strip/collapse whitespace for set values on selects (#2978, 7052698)

  • Remove redundant parent check (b43a368)

  • Fix setting selected on an option in IE<=11 (#2732, 780cac8)

CSS

  • Don't workaround the IE 11 iframe-in-fullscreen sizing issues (#3041, ff1a082)

  • Toggle detached elements as visible unless they have display: none (#2863, 755e7cc)

  • Make sure elem.ownerDocument.defaultView is not null (#2866, 35c3148)

  • Add animation-iteration-count to cssNumber (#2792, df822ca)

  • Restore cascade-override behavior in .show (#2654, #2308, dba93f7)

  • Stop Firefox from treating disconnected elements as cascade-hidden (#2833, fe05cf3)

Core

  • Implement ready without Deferred (#1778, #1823, 5cbb234)

  • Improve isNumeric logic and test coverage (#2780, 7103d8e)

  • Set the base href of the context in parseHTML (#2965, 10fc590)

  • Simplify isPlainObject (#2986, e0d3bfa)

  • Add test for `jQuery.isPlainObject(localStorage)` (ce6c83f)

  • Do not expose second argument of the `jQuery.globalEval` (6680c1b)

  • Deprecate jQuery.parseJSON (#2800, 93a8fa6)

Deferred

  • Separate the two paths in jQuery.when (#3029, 356a3bc)

  • Provide explicit undefined context for jQuery.when raw casts (#3082, 7f1e593)

  • Remove default callback context (#3060, 7608437)

  • Warn on exceptions that are likely programming errors (#2736, 36a7cf9)

  • Propagate progress correctly from unwrapped promises (#3062, d5dae25)

  • Make jQuery.when synchronous when possible (#3100, de71e97)

  • Remove undocumented progress notifications in $.when (#2710, bdf1b8f)

  • Give better stack diagnostics on exceptions (07c11c0)

Dimensions

  • Add tests for negative borders & paddings (f00dd0f)

Docs

  • Fix various spelling errors (aae4411)

  • Update support comments related to IE (693f1b5)

  • Fix an incorrect comment in the attributes module (5430c54)

  • Updated links to https where they are supported. (b0b280c)

  • Update support comments to follow the new syntax (6072d15)

  • Use https where possible (1de8346)

  • Use HTTPS URLs for jsfiddle & jsbin (63a303f)

  • Add FAQ to reduce noise in issues (dbdc4b7)

  • Add a note about loading source with AMD (#2714, e0c25ab)

  • Add note about code organization with AMD (#2750, dbc4608)

  • Reference new feature guidelines and API tenets (#2320, 6054139)

Effects

  • Remove width/height exception for oldIE (#2488, e04e246)

  • Add tests for using jQuery.speed directly (#2716, cb80b42)

Event

  • Allow constructing a jQuery.Event without a target (#3139, 2df590e)

  • Add touch event properties, eliminates need for a plugin (#3104, f595808)

  • Add the most commonly used pointer event properties (7d21f02)

  • Remove fixHooks, propHooks; switch to ES5 getter with addProp (#3103, #1746, e61fccb)

  • Make event dispatch optimizable by JavaScript engines (9f268ca)

  • Evaluate delegate selectors at add time (#3071, 7fd36ea)

  • Cover invalid delegation selector edge cases (e8825a5)

  • Fix chaining .on() with null handlers (#2846, 17f0e26)

  • Remove pageX/pageY fill for event object (#3092, 931f45f)

Events

  • Don't execute native stop(Immediate)Propagation from simulation (#3111, 94efb79)

Manipulation

  • Bring tagname regexes up to spec (#2005, fb9472c)

Offset

  • Resolve strict mode ClientRect “no setter” exception (3befe59)

Selector

  • filters -> pseudos (#2073, 0402963)

  • Update Sizzle to 2.3.0 (5c4be05)

  • Add jQuery.escapeSelector (#1761, 25068bf)

Serialize

  • Treat literal and function-returned null/undefined the same (#3005, 9fdbdd3)

  • Reduce size (91850ec)

Support

  • Improve support properties computation (#3018, 44cb97e)

Tests

  • Take Safari 9.1 into account (234a2d8)

  • Limit selection to #qunit-fixture in attributes.js (ddb2c06)

  • Set Edge's expected support for clearClone  to true (28f0329)

  • Fix Deferred tests in Android 5.0's stock Chrome browser & Yandex.Browser (5c01cb1)

  • Add additional test for jQuery.isPlainObject (728ea2f)

  • Build: update QUnit and fix incorrect test (b97c8d3)

  • Fix manipulation tests in Android 4.4 (0b0d4c6)

  • Remove side-effects of one attributes test (f9ea869)

  • Account for new offset tests (f52fa81)

  • Make iframe tests wait after checking isReady (08d73d7)

  • Refactor testIframe() to make it DRYer and more consistent (e5ffcb0)

  • Weaken sync-assumption from jQuery.when to jQuery.ready.then (f496182)

  • Test element position outside view (#2909, a2f63ff)

  • Make the regex catching Safari 9.0/9.1 more resilient (7f2ebd2)

Traversing

  • .not/.filter consistency with non-elements (#2808, 0e2f8f9)

  • Never let .closest() match positional selectors (#2796, a268f52)

  • Restore jQuery push behavior in .find (#2370, 4d3050b)

详情:jQuery 3.0 Final Released!

Javascript 相关文章推荐
JSON 编辑器实现代码
Dec 06 Javascript
跨浏览器通用、可重用的选项卡tab切换js代码
Sep 20 Javascript
jQuery结合AJAX之在页面滚动时从服务器加载数据
Jun 30 Javascript
jquery zTree异步加载简单实例讲解
Feb 25 Javascript
javascript函数自动执行常用方法汇总
Mar 28 Javascript
Bootstrap滚动监听(Scrollspy)插件详解
Apr 26 Javascript
jQuery基于函数重载实现自定义Alert函数样式的方法
Jul 27 Javascript
AngularJS通过$http和服务器通信详解
Sep 21 Javascript
jQuery事件用法详解
Oct 06 Javascript
loading动画特效小结
Jan 22 Javascript
jQuery实现级联下拉框实战(5)
Feb 08 Javascript
详解VUE前端按钮权限控制
Apr 26 Javascript
浅谈JavaScript变量的自动转换和语句
Jun 12 #Javascript
浅谈jquery点击label触发2次的问题
Jun 12 #Javascript
Bootstrap学习笔记之js组件(4)
Jun 12 #Javascript
JSP基于Bootstrap分页显示实例解析
Jun 12 #Javascript
JavaScript手机振动API
Jun 11 #Javascript
JavaScript地理位置信息API
Jun 11 #Javascript
jQuery自定义数值抽奖活动代码
Jun 11 #Javascript
You might like
php 数组动态添加实现代码(最土团购系统的价格排序)
2011/12/30 PHP
PHP 转义使用详解
2013/07/15 PHP
PHP实现发送微博消息功能完整示例
2019/12/04 PHP
javascript 实用的文字链提示框效果
2010/06/30 Javascript
有关js的变量作用域和this指针的讨论
2010/12/16 Javascript
关于jquery.validate1.9.0前台验证的使用介绍
2013/04/26 Javascript
JavaScript SetInterval与setTimeout使用方法详解
2013/11/15 Javascript
jquery和雅虎的yql服务实现天气预报服务示例
2014/02/08 Javascript
抛弃Nginx使用nodejs做反向代理服务器
2014/07/17 NodeJs
一个不错的js html页面倒计时可精确到秒
2014/10/22 Javascript
jQuery选择器源码解读(六):Sizzle选择器匹配逻辑分析
2015/03/31 Javascript
ES6概念 ymbol.for()方法
2016/12/25 Javascript
微信小程序 Tab页切换更新数据
2017/01/05 Javascript
JQuery Ajax 异步操作之动态添加节点功能
2017/05/24 jQuery
jQuery实现根据身份证号获取生日、年龄、性别等信息的方法
2019/01/09 jQuery
uni-app使用countdown插件实现倒计时
2020/11/01 Javascript
Vue2.x-使用防抖以及节流的示例
2021/03/02 Vue.js
python 的列表遍历删除实现代码
2020/04/12 Python
python安装教程
2018/02/28 Python
Pyinstaller将py打包成exe的实例
2018/03/31 Python
python线程池threadpool使用篇
2018/04/27 Python
Python拼接微信好友头像大图的实现方法
2018/08/01 Python
python 判断linux进程,并杀死进程的实现方法
2019/07/01 Python
Python字节单位转换实例
2019/12/05 Python
python GUI库图形界面开发之PyQt5开发环境配置与基础使用
2020/02/25 Python
如何在Win10系统使用Python3连接Hive
2020/10/15 Python
详解python使用金山词霸的翻译功能(调试工具断点的使用)
2021/01/07 Python
html5自定义video标签的海报与播放按钮功能
2019/12/04 HTML / CSS
斯洛伐克家具和时尚装饰品购物网站:Butlers.sk
2019/09/08 全球购物
电影T恤、80年代T恤和80年代服装:TV Store Online
2020/01/05 全球购物
Strathberry苏贝瑞中国官网:西班牙高级工匠手工打造
2020/10/19 全球购物
大学生毕业的自我鉴定
2013/11/13 职场文书
实习求职信
2013/12/01 职场文书
2015初中政治教学工作总结
2015/07/21 职场文书
2016春季校长开学典礼致辞
2015/11/26 职场文书
手把手教你怎么用Python实现zip文件密码的破解
2021/05/27 Python