jQuery 3.2.0 发布了,此版本包括一些错误修复,改进和一些弃用,如果从 jQuery 3.0+ 升级,应该不会存在兼容性问题。 如果尚未升级到 jQuery 3+,请查看 3.0 升级指南。jQuery Migrate 3.0 插件将帮助你识别代码中的兼容性问题。
值得关注的更新:Added support for custom CSS properties (#3144). Deprecated jQuery.holdReady (#3288). Deprecated jQuery.nodeName (#3475). Deprecated jQuery.inArray (#2961). Fixed a bug in .width() , .height() , and related methods where CSS transforms were included in the calculations. For instance, an element with the style transform: scale(2x) should not have its width and height values doubled (#3193). Added support for <template> elements to the .contents() method (#3436). Added
back the deprecated module to the slim build. This change is largely
insignificant given the module’s small size. We believe it makes more
sense to remove deprecated pieces from the slim build at the same time
as the main jQuery build (#3237).
下载
https://code.jquery.com/jquery-3.2.0.js https://code.jquery.com/jquery-3.2.0.min.js 也可从 npm 获取 npm install jquery@3.2.
|