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

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

 

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