$(".card").bind('input propertychange', function() { let len = $(".card").val().length; if(len === 10){ $(".commit").click(); }});动态监听input 键盘输入原生jsdocument.getElementById("xxxx").addEventListener('keydown',function(){ babababb})