喜大普奔!jQuery发布 3.0 最终版
jQuery3.0最终版发布了。jQuery3.0将是jQuery的未来。但如果你需要IE6-8支持,您可以继续使用最新版本1.12。
为了帮助用户升级,jQuery发布了全新的3.0升级指南,以及 jQueryMigrate3.0插件将帮助您识别代码中的兼容性问题。
您可以从jQueryCDN获取文件,或者直接访问链接:
您也可以从以下npm获得更新:
npminstalljquery@3.0.0
此外,jQueryMigrate3.0也更新了。地址:
npminstalljquery-migrate@3.0.0
更新日志:
Golfaway21bytes(eaa3e9f)
PreserveURLhashonrequests(#1732, e077ffb)
ExecutejQuery#loadcallbackwithcorrectcontext(#3035, 5d20a3c)
EnsureajaxSettings.traditionalisstillhonored(#3023, df2051c)
RemoveunnecessaryuseofjQuery.trim(0bd98b1)
Avoidinfiniterecursiononnon-lowercaseattributegetters(#3133, e06fda6)
Addasupportcomment&fixalink@tabIndexhook(9cb89bf)
Strip/collapsewhitespaceforsetvaluesonselects(#2978, 7052698)
Removeredundantparentcheck(b43a368)
FixsettingselectedonanoptioninIE<=11(#2732, 780cac8)
Don'tworkaroundtheIE11iframe-in-fullscreensizingissues(#3041, ff1a082)
Toggledetachedelementsasvisibleunlesstheyhavedisplay:none(#2863, 755e7cc)
Makesureelem.ownerDocument.defaultViewisnotnull(#2866, 35c3148)
Addanimation-iteration-counttocssNumber(#2792, df822ca)
Restorecascade-overridebehaviorin.show(#2654, #2308, dba93f7)
StopFirefoxfromtreatingdisconnectedelementsascascade-hidden(#2833, fe05cf3)
ImplementreadywithoutDeferred(#1778, #1823, 5cbb234)
ImproveisNumericlogicandtestcoverage(#2780, 7103d8e)
SetthebasehrefofthecontextinparseHTML(#2965, 10fc590)
SimplifyisPlainObject(#2986, e0d3bfa)
Addtestfor`jQuery.isPlainObject(localStorage)`(ce6c83f)
Donotexposesecondargumentofthe`jQuery.globalEval`(6680c1b)
DeprecatejQuery.parseJSON(#2800, 93a8fa6)
SeparatethetwopathsinjQuery.when(#3029, 356a3bc)
ProvideexplicitundefinedcontextforjQuery.whenrawcasts(#3082, 7f1e593)
Removedefaultcallbackcontext(#3060, 7608437)
Warnonexceptionsthatarelikelyprogrammingerrors(#2736, 36a7cf9)
Propagateprogresscorrectlyfromunwrappedpromises(#3062, d5dae25)
MakejQuery.whensynchronouswhenpossible(#3100, de71e97)
Removeundocumentedprogressnotificationsin$.when(#2710, bdf1b8f)
Givebetterstackdiagnosticsonexceptions(07c11c0)
Addtestsfornegativeborders&paddings(f00dd0f)
Fixvariousspellingerrors(aae4411)
UpdatesupportcommentsrelatedtoIE(693f1b5)
Fixanincorrectcommentintheattributesmodule(5430c54)
Updatedlinkstohttpswheretheyaresupported.(b0b280c)
Updatesupportcommentstofollowthenewsyntax(6072d15)
Usehttpswherepossible(1de8346)
UseHTTPSURLsforjsfiddle&jsbin(63a303f)
AddFAQtoreducenoiseinissues(dbdc4b7)
AddanoteaboutloadingsourcewithAMD(#2714, e0c25ab)
AddnoteaboutcodeorganizationwithAMD(#2750, dbc4608)
ReferencenewfeatureguidelinesandAPItenets(#2320, 6054139)
Removewidth/heightexceptionforoldIE(#2488, e04e246)
AddtestsforusingjQuery.speeddirectly(#2716, cb80b42)
AllowconstructingajQuery.Eventwithoutatarget(#3139, 2df590e)
Addtoucheventproperties,eliminatesneedforaplugin(#3104, f595808)
Addthemostcommonlyusedpointereventproperties(7d21f02)
RemovefixHooks,propHooks;switchtoES5getterwithaddProp(#3103, #1746, e61fccb)
MakeeventdispatchoptimizablebyJavaScriptengines(9f268ca)
Evaluatedelegateselectorsataddtime(#3071, 7fd36ea)
Coverinvaliddelegationselectoredgecases(e8825a5)
Fixchaining.on()withnullhandlers(#2846, 17f0e26)
RemovepageX/pageYfillforeventobject(#3092, 931f45f)
Don'texecutenativestop(Immediate)Propagationfromsimulation(#3111, 94efb79)
Bringtagnameregexesuptospec(#2005, fb9472c)
ResolvestrictmodeClientRect“nosetter”exception(3befe59)
filters->pseudos(#2073, 0402963)
UpdateSizzleto2.3.0(5c4be05)
AddjQuery.escapeSelector(#1761, 25068bf)
Treatliteralandfunction-returnednull/undefinedthesame(#3005, 9fdbdd3)
Reducesize(91850ec)
Improvesupportpropertiescomputation(#3018, 44cb97e)
TakeSafari9.1intoaccount(234a2d8)
Limitselectionto#qunit-fixtureinattributes.js(ddb2c06)
SetEdge'sexpectedsupportforclearClone totrue(28f0329)
FixDeferredtestsinAndroid5.0'sstockChromebrowser&Yandex.Browser(5c01cb1)
AddadditionaltestforjQuery.isPlainObject(728ea2f)
Build:updateQUnitandfixincorrecttest(b97c8d3)
FixmanipulationtestsinAndroid4.4(0b0d4c6)
Removeside-effectsofoneattributestest(f9ea869)
Accountfornewoffsettests(f52fa81)
MakeiframetestswaitaftercheckingisReady(08d73d7)
RefactortestIframe()tomakeitDRYerandmoreconsistent(e5ffcb0)
Weakensync-assumptionfromjQuery.whentojQuery.ready.then(f496182)
Testelementpositionoutsideview(#2909, a2f63ff)
MaketheregexcatchingSafari9.0/9.1moreresilient(7f2ebd2)
.not/.filterconsistencywithnon-elements(#2808, 0e2f8f9)
Neverlet.closest()matchpositionalselectors(#2796, a268f52)
RestorejQuerypushbehaviorin.find(#2370, 4d3050b)
详情:jQuery3.0FinalReleased!