jQuery 3.0.0 发布,优秀的Javascrīpt框架
jopen 8年前
<p style="text-align: center;"><img alt="" src="https://simg.open-open.com/show/8364daeffff2eefa5c347b6d120cd09d.png" /></p> <p>jQuery是一个优秀的Javascrīpt框架。它是轻量级的js库(压缩后只有21k) ,兼容CSS3,还兼容各种浏览器 (IE 6.0+,FF 1.5+,Safari 2.0+,Opera 9.0+)。jQuery使用户能更方便地处理HTML documents、events、实现动画效果,并且方便地为网站提供AJAX交互。</p> <h2>更新日志</h2> <h3>Ajax</h3> <ul> <li>Golf away 21 bytes (<a href="/misc/goto?guid=4958991271521967528">eaa3e9f</a>)</li> <li>Preserve URL hash on requests (<a href="/misc/goto?guid=4958991271609588208">#1732</a>, <a href="/misc/goto?guid=4958991271693851495">e077ffb</a>)</li> <li>Execute jQuery#load callback with correct context (<a href="/misc/goto?guid=4958991271780681046">#3035</a>, <a href="/misc/goto?guid=4958991271864867853">5d20a3c</a>)</li> <li>Ensure ajaxSettings.traditional is still honored (<a href="/misc/goto?guid=4958991271952488897">#3023</a>, <a href="/misc/goto?guid=4958991272034291547">df2051c</a>)</li> <li>Remove unnecessary use of jQuery.trim (<a href="/misc/goto?guid=4958991272109630110">0bd98b1</a>)</li> </ul> <h3>Attributes</h3> <ul> <li>Avoid infinite recursion on non-lowercase attribute getters (<a href="/misc/goto?guid=4958991272208997292">#3133</a>, <a href="/misc/goto?guid=4958991272335587210">e06fda6</a>)</li> <li>Add a support comment & fix a link @ tabIndex hook (<a href="/misc/goto?guid=4958991272455552525">9cb89bf</a>)</li> <li>Strip/collapse whitespace for set values on selects (<a href="/misc/goto?guid=4958991272580064815">#2978</a>, <a href="/misc/goto?guid=4958991272684246693">7052698</a>)</li> <li>Remove redundant parent check (<a href="/misc/goto?guid=4958991272799987973">b43a368</a>)</li> <li>Fix setting selected on an option in IE<=11 (<a href="/misc/goto?guid=4958991272920011961">#2732</a>, <a href="/misc/goto?guid=4958991273036011312">780cac8</a>)</li> </ul> <h3>CSS</h3> <ul> <li>Don’t workaround the IE 11 iframe-in-fullscreen sizing issues (<a href="/misc/goto?guid=4958991273154791005">#3041</a>, <a href="/misc/goto?guid=4958991273288603228">ff1a082</a>)</li> <li>Toggle detached elements as visible unless they have display: none (<a href="/misc/goto?guid=4958991273411306354">#2863</a>, <a href="/misc/goto?guid=4958991273530336064">755e7cc</a>)</li> <li>Make sure elem.ownerDocument.defaultView is not null (<a href="/misc/goto?guid=4958991273668017230">#2866</a>, <a href="/misc/goto?guid=4958991273802585864">35c3148</a>)</li> <li>Add animation-iteration-count to cssNumber (<a href="/misc/goto?guid=4958991273930865948">#2792</a>, <a href="/misc/goto?guid=4958991274063363019">df822ca</a>)</li> <li>Restore cascade-override behavior in .show (<a href="/misc/goto?guid=4958991274193788455">#2654</a>, <a href="/misc/goto?guid=4958991274322008992">#2308</a>, <a href="/misc/goto?guid=4958991274454167947">dba93f7</a>)</li> <li>Stop Firefox from treating disconnected elements as cascade-hidden (<a href="/misc/goto?guid=4958991274583390366">#2833</a>, <a href="/misc/goto?guid=4958991274714604136">fe05cf3</a>)</li> </ul> <h3>Core</h3> <ul> <li>Implement ready without Deferred (<a href="/misc/goto?guid=4958991274839861317">#1778</a>, <a href="/misc/goto?guid=4958991274978652807">#1823</a>, <a href="/misc/goto?guid=4958991275109651443">5cbb234</a>)</li> <li>Improve isNumeric logic and test coverage (<a href="/misc/goto?guid=4958991275233976771">#2780</a>, <a href="/misc/goto?guid=4958991275373202123">7103d8e</a>)</li> <li>Set the base href of the context in parseHTML (<a href="/misc/goto?guid=4958991275495533777">#2965</a>, <a href="/misc/goto?guid=4958991275619932595">10fc590</a>)</li> <li>Simplify isPlainObject (<a href="/misc/goto?guid=4958991275773339432">#2986</a>, <a href="/misc/goto?guid=4958991275895640986">e0d3bfa</a>)</li> <li>Add test for `jQuery.isPlainObject(localStorage)` (<a href="/misc/goto?guid=4958991276035684334">ce6c83f</a>)</li> <li>Do not expose second argument of the `jQuery.globalEval` (<a href="/misc/goto?guid=4958991276155970020">6680c1b</a>)</li> <li>Deprecate jQuery.parseJSON (<a href="/misc/goto?guid=4958991276295015498">#2800</a>, <a href="/misc/goto?guid=4958991276429871265">93a8fa6</a>)</li> </ul> <h3>Deferred</h3> <ul> <li>Separate the two paths in jQuery.when (<a href="/misc/goto?guid=4958991276562223623">#3029</a>, <a href="/misc/goto?guid=4958991276698779914">356a3bc</a>)</li> <li>Provide explicit undefined context for jQuery.when raw casts (<a href="/misc/goto?guid=4958991276821867107">#3082</a>, <a href="/misc/goto?guid=4958991276952154118">7f1e593</a>)</li> <li>Remove default callback context (<a href="/misc/goto?guid=4958991277085078173">#3060</a>, <a href="/misc/goto?guid=4958991277212536994">7608437</a>)</li> <li>Warn on exceptions that are likely programming errors (<a href="/misc/goto?guid=4958991277351658479">#2736</a>, <a href="/misc/goto?guid=4958991277482106863">36a7cf9</a>)</li> <li>Propagate progress correctly from unwrapped promises (<a href="/misc/goto?guid=4958991277613420289">#3062</a>, <a href="/misc/goto?guid=4958991277739866974">d5dae25</a>)</li> <li>Make jQuery.when synchronous when possible (<a href="/misc/goto?guid=4958991277865911287">#3100</a>, <a href="/misc/goto?guid=4958991277991513628">de71e97</a>)</li> <li>Remove undocumented progress notifications in $.when (<a href="/misc/goto?guid=4958991278114227492">#2710</a>, <a href="/misc/goto?guid=4958991278259482620">bdf1b8f</a>)</li> <li>Give better stack diagnostics on exceptions (<a href="/misc/goto?guid=4958991278381391494">07c11c0</a>)</li> </ul> <h3>Dimensions</h3> <ul> <li>Add tests for negative borders & paddings (<a href="/misc/goto?guid=4958991278516025630">f00dd0f</a>)</li> </ul> <h3>Docs</h3> <ul> <li>Fix various spelling errors (<a href="/misc/goto?guid=4958991278645762337">aae4411</a>)</li> <li>Update support comments related to IE (<a href="/misc/goto?guid=4958991278770104108">693f1b5</a>)</li> <li>Fix an incorrect comment in the attributes module (<a href="/misc/goto?guid=4958991278892269632">5430c54</a>)</li> <li>Updated links to https where they are supported. (<a href="/misc/goto?guid=4958991279028029948">b0b280c</a>)</li> <li>Update support comments to follow the new syntax (<a href="/misc/goto?guid=4958991279159709545">6072d15</a>)</li> <li>Use https where possible (<a href="/misc/goto?guid=4958991279285427838">1de8346</a>)</li> <li>Use HTTPS URLs for jsfiddle & jsbin (<a href="/misc/goto?guid=4958991279423793055">63a303f</a>)</li> <li>Add FAQ to reduce noise in issues (<a href="/misc/goto?guid=4958991279551742893">dbdc4b7</a>)</li> <li>Add a note about loading source with AMD (<a href="/misc/goto?guid=4958991279674913892">#2714</a>, <a href="/misc/goto?guid=4958991279802085983">e0c25ab</a>)</li> <li>Add note about code organization with AMD (<a href="/misc/goto?guid=4958991279914738758">#2750</a>, <a href="/misc/goto?guid=4958991280053709202">dbc4608</a>)</li> <li>Reference new feature guidelines and API tenets (<a href="/misc/goto?guid=4958991280177649440">#2320</a>, <a href="/misc/goto?guid=4958991280300876601">6054139</a>)</li> </ul> <h3>Effects</h3> <ul> <li>Remove width/height exception for oldIE (<a href="/misc/goto?guid=4958991280430589011">#2488</a>, <a href="/misc/goto?guid=4958991280563806217">e04e246</a>)</li> <li>Add tests for using jQuery.speed directly (<a href="/misc/goto?guid=4958991280694414020">#2716</a>, <a href="/misc/goto?guid=4958991280824655394">cb80b42</a>)</li> </ul> <h3>Event</h3> <ul> <li>Allow constructing a jQuery.Event without a target (<a href="/misc/goto?guid=4958991280949286514">#3139</a>, <a href="/misc/goto?guid=4958991281085828227">2df590e</a>)</li> <li>Add touch event properties, eliminates need for a plugin (<a href="/misc/goto?guid=4958991281211188975">#3104</a>, <a href="/misc/goto?guid=4958991281336619039">f595808</a>)</li> <li>Add the most commonly used pointer event properties (<a href="/misc/goto?guid=4958991281455891520">7d21f02</a>)</li> <li>Remove fixHooks, propHooks; switch to ES5 getter with addProp (<a href="/misc/goto?guid=4958991281582696041">#3103</a>, <a href="/misc/goto?guid=4958991281683540819">#1746</a>, <a href="/misc/goto?guid=4958991281805630043">e61fccb</a>)</li> <li>Make event dispatch optimizable by JavaScript engines (<a href="/misc/goto?guid=4958991281904923996">9f268ca</a>)</li> <li>Evaluate delegate selectors at add time (<a href="/misc/goto?guid=4958991282002753166">#3071</a>, <a href="/misc/goto?guid=4958991282113601319">7fd36ea</a>)</li> <li>Cover invalid delegation selector edge cases (<a href="/misc/goto?guid=4958991282217684958">e8825a5</a>)</li> <li>Fix chaining .on() with null handlers (<a href="/misc/goto?guid=4958991282312785928">#2846</a>, <a href="/misc/goto?guid=4958991282407043189">17f0e26</a>)</li> <li>Remove pageX/pageY fill for event object (<a href="/misc/goto?guid=4958991282498829838">#3092</a>, <a href="/misc/goto?guid=4958991282596069296">931f45f</a>)</li> </ul> <h3>Events</h3> <ul> <li>Don’t execute native stop(Immediate)Propagation from simulation (<a href="/misc/goto?guid=4958991282687230512">#3111</a>, <a href="/misc/goto?guid=4958991282770603356">94efb79</a>)</li> </ul> <h3>Manipulation</h3> <ul> <li>Bring tagname regexes up to spec (<a href="/misc/goto?guid=4958991282862640422">#2005</a>, <a href="/misc/goto?guid=4958991282945711774">fb9472c</a>)</li> </ul> <h3>Offset</h3> <ul> <li>Resolve strict mode ClientRect “no setter” exception (<a href="/misc/goto?guid=4958991283035819795">3befe59</a>)</li> </ul> <h3>Selector</h3> <ul> <li>filters -> pseudos (<a href="/misc/goto?guid=4958991283110657519">#2073</a>, <a href="/misc/goto?guid=4958991283197911108">0402963</a>)</li> <li>Update Sizzle to 2.3.0 (<a href="/misc/goto?guid=4958991283282096430">5c4be05</a>)</li> <li>Add jQuery.escapeSelector (<a href="/misc/goto?guid=4958991283370476701">#1761</a>, <a href="/misc/goto?guid=4958991283455711161">25068bf</a>)</li> </ul> <h3>Serialize</h3> <ul> <li>Treat literal and function-returned null/undefined the same (<a href="/misc/goto?guid=4958991283537411528">#3005</a>, <a href="/misc/goto?guid=4958991283624764604">9fdbdd3</a>)</li> <li>Reduce size (<a href="/misc/goto?guid=4958991283707369208">91850ec</a>)</li> </ul> <h3>Support</h3> <ul> <li>Improve support properties computation (<a href="/misc/goto?guid=4958991283801894214">#3018</a>, <a href="/misc/goto?guid=4958991283883308925">44cb97e</a>)</li> </ul> <h3>Tests</h3> <ul> <li>Take Safari 9.1 into account (<a href="/misc/goto?guid=4958991283959131079">234a2d8</a>)</li> <li>Limit selection to #qunit-fixture in attributes.js (<a href="/misc/goto?guid=4958991284056092867">ddb2c06</a>)</li> <li>Set Edge’s expected support for clearCloneStyle to true (<a href="/misc/goto?guid=4958991284132786568">28f0329</a>)</li> <li>Fix Deferred tests in Android 5.0’s stock Chrome browser & Yandex.Browser (<a href="/misc/goto?guid=4958991284212216098">5c01cb1</a>)</li> <li>Add additional test for jQuery.isPlainObject (<a href="/misc/goto?guid=4958991284292428437">728ea2f</a>)</li> <li>Build: update QUnit and fix incorrect test (<a href="/misc/goto?guid=4958991284385879846">b97c8d3</a>)</li> <li>Fix manipulation tests in Android 4.4 (<a href="/misc/goto?guid=4958991284474239095">0b0d4c6</a>)</li> <li>Remove side-effects of one attributes test (<a href="/misc/goto?guid=4958991284560494192">f9ea869</a>)</li> <li>Account for new offset tests (<a href="/misc/goto?guid=4958991284633619245">f52fa81</a>)</li> <li>Make iframe tests wait after checking isReady (<a href="/misc/goto?guid=4958991284719168044">08d73d7</a>)</li> <li>Refactor testIframe() to make it DRYer and more consistent (<a href="/misc/goto?guid=4958991284801947152">e5ffcb0</a>)</li> <li>Weaken sync-assumption from jQuery.when to jQuery.ready.then (<a href="/misc/goto?guid=4958991284880661797">f496182</a>)</li> <li>Test element position outside view (<a href="/misc/goto?guid=4958991284966737997">#2909</a>, <a href="/misc/goto?guid=4958991285060388699">a2f63ff</a>)</li> <li>Make the regex catching Safari 9.0/9.1 more resilient (<a href="/misc/goto?guid=4958991285136310759">7f2ebd2</a>)</li> </ul> <h3>Traversing</h3> <ul> <li>.not/.filter consistency with non-elements (<a href="/misc/goto?guid=4958991285222427501">#2808</a>, <a href="/misc/goto?guid=4958991285294929627">0e2f8f9</a>)</li> <li>Never let .closest() match positional selectors (<a href="/misc/goto?guid=4958991285374609179">#2796</a>, <a href="/misc/goto?guid=4958991285465989903">a268f52</a>)</li> <li>Restore jQuery push behavior in .find (<a href="/misc/goto?guid=4958991285543640861">#2370</a>, <a href="/misc/goto?guid=4958991285633517375">4d3050b</a>)</li> </ul> <h2>下载</h2> <ul> <li><a href="/misc/goto?guid=4958991285710411957">Download the compressed, production jQuery 3.0.0</a></li> <li><a href="/misc/goto?guid=4958991285790282136">Download the uncompressed, development jQuery 3.0.0</a></li> <li><a href="/misc/goto?guid=4958991285883900495">Download the map file for jQuery 3.0.0</a></li> <li><a href="/misc/goto?guid=4958991285969960264" rel="nofollow"><strong>Source code</strong> (zip)</a></li> <li><a href="/misc/goto?guid=4958991286046892044" rel="nofollow"><strong>Source code</strong> (tar.gz)</a></li> </ul> <p> </p>