正则方法 使input中的值只能为数值类型

oninput= “this.value = this.value.replace(/\D+/g, ‘’)”

猜你喜欢

转载自blog.csdn.net/qq_43246012/article/details/83090236