input type="text" class="form-control" autocomplete="off" onchange = "if(/[^\d+(,\d\d\d)*.\d+$]/g.test(this.value)){layer.alert('只能输入数字');this.value='';}">
input验证只能输入数字,逗号和小数点的正则表达式
猜你喜欢
转载自blog.csdn.net/zyj_15067066062/article/details/103876440
今日推荐
周排行