常用正则表达式 非正整数 /((D+)|(0+))/g jquery使用: 1.this.value.replace(/((D+)|(0+))/g, "") 2./((D+)|(0+))/g.test(this.value)