<input id="year3" class="wid50" οnkeyup=" if (this.value.length == 1) { this.value = this.value.replace(/[^1-9]/g, '') } else { this.value = this.value.replace(/\D/g, '') }" type="text" />
本文共 238 字,大约阅读时间需要 1 分钟。
<input id="year3" class="wid50" οnkeyup=" if (this.value.length == 1) { this.value = this.value.replace(/[^1-9]/g, '') } else { this.value = this.value.replace(/\D/g, '') }" type="text" />
转载于:https://www.cnblogs.com/lhlong/p/5826440.html