jQuery 3.4.1 发布,修复上个版本的问题

  

三周前,jQuery 发布了 3.4.0 版本,用户对这个版本反馈了不少问题,于是便有了这个修复问题的补丁版本 3.4.1。

1.在 IE 中触发获取或失去焦点的事件出现异常

在 jQuery 3.4.0 中,触发本地事件的事件处理程序带来了一些改变,例如focusblur。而这些变化导致了一个回归问题,有时会导致抛出神秘的错误"saved.shift is not a function",目前已修复。

示例代码

// Error thrown in IE10-11
// after clicking #test-element twice
jQuery("#test-element").click(function() {
  jQuery(this).trigger("blur");
});

2.修复在 iOS 10.0-10.2 中无法检查元素附件的问题

3.使用 AMD 加载 jQuery 出错的问题已修复

下载地址:

https://code.jquery.com/jquery-3.4.1.js
https://code.jquery.com/jquery-3.4.1.min.js

或者从 npm 获取该版本:

npm install [email protected]

GitHub changelog: Issues fixed in 3.4.1 | All changes

猜你喜欢

转载自www.oschina.net/news/106437/jquery-3-4-1-released