时隔一年,jQuery 发布 3.4.0 版本

栏目: jQuery · 发布时间: 6年前

内容简介:jQuery 团队的核心开发者 Timmy Willison 今天在官网宣布了Timmy 表示这可能是 3.x 分支的最后一个小版本更新,接下来的工作重心将是 jQuery 4.0 大版本的更新。jQuery 3.4.0 的更新内容主要是错误修复和功能改进,列举部分如下:

jQuery 团队的核心开发者 Timmy Willison 今天在官网宣布了 jQuery 3.4.0 ,这距离上个版本3.3.x 系列的推出已过去了一年多。

Timmy 表示这可能是 3.x 分支的最后一个小版本更新,接下来的工作重心将是 jQuery 4.0 大版本的更新。

jQuery 3.4.0 的更新内容主要是错误修复和功能改进,列举部分如下:

  • 针对 .width 和 .height 的性能改进
  • 支持 nonce 和 nomodule
  • 针对 Radio 元素新增 事件处理程序中的预期状态
// 示例代码

var $radios = jQuery(".example");
var $firstRadio = $radios.first();
var firstCheckedState = $firstRadio.prop("checked");
$radio.on("click", function() {
  // true in <3.4.0
  console.log($firstRadio.prop("checked") === firstCheckedState);
});
$radios.eq(1).click();
  • 针对 Object.prototype pollution 问题的小修复
// 示例代码

Example
jQuery.extend(true, {},
  JSON.parse('{"__proto__": {"test": true}}')
);
console.log( "test" in {} ); // true

更多精彩内容请查看发布公告


以上所述就是小编给大家介绍的《时隔一年,jQuery 发布 3.4.0 版本》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Single Page Web Applications

Single Page Web Applications

Michael Mikowski、Josh Powell / Manning Publications / 2013-9-30 / USD 44.99

Code for most web sites mostly runs on the server. When a user clicks on a link, the site reacts slowly because the browser sends information to the server and the server sends it back again before di......一起来看看 《Single Page Web Applications》 这本书的介绍吧!

SHA 加密
SHA 加密

SHA 加密工具

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具