小编Unk*_*123的帖子

JQuery 3.4.1 无法读取未定义的属性“值”

将 jQuery 3.4.0 升级到 3.4.1 后,在输入blur()focus()事件上Cannot read property 'value' of undefined出现错误。

that.container.on('click', '.binary_field', function(){
    $("input:focus").blur();
}
Run Code Online (Sandbox Code Playgroud)

我认为这可能是 jquery 源代码发生这种变化的原因:https://github.com/jquery/jquery/commit/24d71ac70406f522fc1b09bf7c4025251ec3aee6?diff=unified#diff-031bb62d959e7e4949d15537f3R

javascript jquery events upgrade

5
推荐指数
2
解决办法
442
查看次数

标签 统计

events ×1

javascript ×1

jquery ×1

upgrade ×1