非正整数 /((\D+)|(0+))/g
jquery使用: 1.this.value.replace(/((\D+)|(0+))/g, "") 2./((\D+)|(0+))/g.test(this.value)
非正整数 /((\D+)|(0+))/g
jquery使用: 1.this.value.replace(/((\D+)|(0+))/g, "") 2./((\D+)|(0+))/g.test(this.value)
转载于:https://www.cnblogs.com/gongOnTheWay/p/5101294.html