首页 > 语言 > JavaScript > 正文

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

2024-05-06 14:56:21
字体:
来源:转载
供稿:网友

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)

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表

图片精选