喜大普奔!jQuery發(fā)布 3.0 最終版
jQuery 3.0 最終版發(fā)布了。jQuery 3.0將是jQuery的未來(lái)。但如果你需要IE6-8支持,您可以繼續(xù)使用最新版本1.12。
為了幫助用戶升級(jí),jQuery 發(fā)布了全新的3.0升級(jí)指南,以及 jQuery Migrate 3.0 插件將幫助您識(shí)別代碼中的兼容性問(wèn)題。
您可以從jQuery CDN獲取文件,或者直接訪問(wèn)鏈接:
您也可以從以下npm獲得更新:
npm install jquery@3.0.0
此外,jQuery Migrate 3.0 也更新了。地址:
npm install jquery-migrate@3.0.0
更新日志:
Ajax
-
Golf away 21 bytes (eaa3e9f)
-
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)
-
Restore cascade-override behavior in .show (#2654, #2308, dba93f7)
-
Stop Firefox from treating disconnected elements as cascade-hidden (#2833, fe05cf3)
Core
-
Set the base href of the context in parseHTML (#2965, 10fc590)
-
Add test for `jQuery.isPlainObject(localStorage)` (ce6c83f)
-
Do not expose second argument of the `jQuery.globalEval` (6680c1b)
Deferred
-
Provide explicit undefined context for jQuery.when raw casts (#3082, 7f1e593)
-
Warn on exceptions that are likely programming errors (#2736, 36a7cf9)
-
Propagate progress correctly from unwrapped promises (#3062, d5dae25)
-
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)
-
Reference new feature guidelines and API tenets (#2320, 6054139)
Effects
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)
-
Cover invalid delegation selector edge cases (e8825a5)
Events
Manipulation
Offset
-
Resolve strict mode ClientRect “no setter” exception (3befe59)
Selector
-
Update Sizzle to 2.3.0 (5c4be05)
Serialize
Support
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)
-
Make the regex catching Safari 9.0/9.1 more resilient (7f2ebd2)
Traversing
相關(guān)文章
基于jQuery的message插件實(shí)現(xiàn)右下角彈出消息框
有時(shí)在頁(yè)面加載的時(shí)候,需要在頁(yè)面的右下角彈出一個(gè)小的提示框,顯示一些提示信息給用戶,通過(guò)使用jQuery的message插件,可以很方便的實(shí)現(xiàn)這個(gè)效果,在使用之前先介紹一下message插件中的方法的使用。2011-01-01jQuery插件實(shí)現(xiàn)非常實(shí)用的tab欄切換功能【案例】
這篇文章主要介紹了jQuery插件實(shí)現(xiàn)非常實(shí)用的tab欄切換功能,涉及jQuery事件響應(yīng)及頁(yè)面元素屬性動(dòng)態(tài)操作相關(guān)實(shí)現(xiàn)技巧,需要的朋友可以參考下2019-02-02jQuery實(shí)現(xiàn)的簡(jiǎn)單動(dòng)態(tài)添加、刪除表格功能示例
這篇文章主要介紹了jQuery實(shí)現(xiàn)的簡(jiǎn)單動(dòng)態(tài)添加、刪除表格功能,涉及jQuery事件響應(yīng)及表格元素動(dòng)態(tài)操作相關(guān)實(shí)現(xiàn)技巧,需要的朋友可以參考下2017-09-09實(shí)現(xiàn)音樂(lè)播放器的代碼(html5+css3+jquery)
這篇文章主要講實(shí)現(xiàn)音樂(lè)播放器的代碼(html5+css3+jquery),需要的朋友可以參考下2015-08-08為JQuery EasyUI 表單組件增加焦點(diǎn)切換功能的方法
下面小編就為大家?guī)?lái)一篇為JQuery EasyUI 表單組件增加焦點(diǎn)切換功能的方法。小編覺(jué)得挺不錯(cuò)的,現(xiàn)在就分享給大家,也給大家做個(gè)參考。一起跟隨小編過(guò)來(lái)看看吧2017-04-04jquery 清空f(shuō)ile域示例(兼容個(gè)瀏覽器)
在本文將為大家介紹喜下如何使用jquery 清空f(shuō)ile域并做到兼容個(gè)瀏覽器,感興趣的朋友可以參考下2013-10-10instanceof和typeof運(yùn)算符的區(qū)別詳解
兩個(gè)運(yùn)算符雖然比較相似,其實(shí)區(qū)別還是非常大的,雖然不難區(qū)別,但是對(duì)于初學(xué)者可能稍有困擾,下面就簡(jiǎn)單介紹一下它們兩者的區(qū)別,希望對(duì)需要的朋友有所幫助2014-01-01jQuery使用EasyUi實(shí)現(xiàn)三級(jí)聯(lián)動(dòng)下拉框效果
本篇文章主要介紹了jQuery使用EasyUi實(shí)現(xiàn)三級(jí)聯(lián)動(dòng)效果,實(shí)例使用EasyUi實(shí)現(xiàn)三級(jí)聯(lián)動(dòng)技巧,非常具有實(shí)用價(jià)值,需要的朋友可以參考下。2017-03-03jquery 驗(yàn)證用戶名是否重復(fù)代碼實(shí)例
這篇文章主要介紹了jquery驗(yàn)證用戶名是否重復(fù),文中通過(guò)示例代碼介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)學(xué)習(xí)吧2019-05-05