修改可以取到值的js部分

This commit is contained in:
jianghongdong 2018-08-14 19:44:42 +08:00
parent 4581c03856
commit 01e6a8acef

View File

@ -225,7 +225,7 @@ function keydownAction(event){
}else if(event.keyCode==8){ // backspace
var target = $(event.target);
// 可以取到值、为可编辑的表单、不为按钮/下拉选择/勾选/只读等允许使用backspace键
return !!target.val() && target.is(":input:enabled") && !target.is(":button,:selected,:checked,[readonly]");
return target.val() && target.is(":input:enabled") && !target.is(":button,:selected,:checked,[readonly]");
}
}
$(document).keydown(keydownAction);