js如何实现一个通用的正则验证表单方法var str = '374829348791'var re = D D代表非数字if( re.test(str) ){ 返回true,代表在字符串中找到了非数字。 alert(2023-02-19JavaScript320