页面中输入框只允许输入数字

onkeyup="this.value=this.value.replace(/[^0-9.]/g,'')"

 

posted on 2019-07-25 16:03  茫无所知  阅读(99)  评论(0)    收藏  举报