input 只允许输入数字

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

posted @ 2017-05-03 15:46  hanggle  阅读(847)  评论(0编辑  收藏  举报