input输入框只能输入正整数

加入属性:οninput="value=value.replace(/[^\d]/g,'')"

posted @ 2020-04-30 09:35  虫昔竹毛小新  阅读(569)  评论(0)    收藏  举报