JQuery设置input框只能输入数字 7年前 (2018-04-18) 阅读 1,629 次 评论 0 条 JS/JQuery //JQuery方法 function num(obj){ obj.value = obj.value.replace(/[^\d.]/g,""); //清除"数字"和"."以外的字符 obj.value = obj.value.repla... input, jQuery, 数字