<input type='text' onkeyup="this.value=this.value.replace(/[^0-9]+/,'');" />/只能输入非负整数
<input type='text' onkeyup="this.value=this.value.replace(/[^0-9-]+/,'');" />只能输入整数
<input type='text' onkeyup="this.value=this.value.replace(/[^0-9]+/,'');" />/只能输入非负整数
<input type='text' onkeyup="this.value=this.value.replace(/[^0-9-]+/,'');" />只能输入整数
6583

被折叠的 条评论
为什么被折叠?