1⃣️ 实现input只能输入数值类型的
οninput= “this.value = this.value.replace(/\D+/g, ‘’)”
常用正则表达式
最新推荐文章于 2022-07-12 15:16:22 发布
1⃣️ 实现input只能输入数值类型的
οninput= “this.value = this.value.replace(/\D+/g, ‘’)”