输入框只允许输入数字

<input onkeyup="this.value=this.value.replace(/\D/g,'')"

posted @ 2017-02-13 09:40  南风叶  阅读(141)  评论(0编辑  收藏  举报