html input 只允许数字

oninput="value=value.replace(/[^\d]/g,'')"

posted @ 2019-04-27 00:23  松手丶明晃晃  阅读(636)  评论(1)    收藏  举报