不输入数字,自动清空

 $('#fillNum').keyup(function(){

            if(isNaN($('#fillNum').val())){
                $(this).val('');
            }
        })
原文地址:https://www.cnblogs.com/afei-happy/p/3848413.html