input文本框只能输入数字的,以及最大数的方法

onkeyup="value=value.replace(/[^(\d)]/g,'')"

 

maxLength="9"

posted @ 2018-10-25 12:31  久违的黎明  阅读(2293)  评论(0)    收藏  举报