摘要: 1、只能输入数字(小数点不能输入) <input type="text" onkeyup="value=value.replace(/[^\d]/g,'')" > 2、只能输入字母和数字(小数点不能输入) <input onkeyup="value=value.replace(/[^\w\/]/ig 阅读全文
posted @ 2021-02-01 14:05 鹤发童颜 阅读(1421) 评论(1) 推荐(1) 编辑