三周前,jQuery 發布了 3.4.0 版本,用戶對這個版本反饋了不少問題,於是便有了這個修復問題的補丁版本 3.4.1。
1.在 IE 中觸發獲取或失去焦點的事件出現異常
在 jQuery 3.4.0 中,觸發本地事件的事件處理程序帶來了一些改變,例如focus
和blur
。而這些變化導致了一個回歸問題,有時會導致拋出神秘的錯誤"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 jquery@3.4.1
GitHub changelog: Issues fixed in 3.4.1 | All changes
[admin
]