input 只允许输入数字

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

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