oninput= “this.value = this.value.replace(/\D+/g, ‘’)”
正则方法 使input中的值只能为数值类型
猜你喜欢
转载自blog.csdn.net/qq_43246012/article/details/83090236
今日推荐
周排行