html input 只允许数字

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

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