登 录
<input type="text" maxlength="5" onkeyup="value=this.value.replace(/\D+/g,'')" />
会自动检测输入的内容是不是数字,最大长度是5
抱歉!评论已关闭.