JS 正则验证字符串中是否含有数字 var test_text="abc123";//2. if (new RegExp("[0-9]").test(test_text)) { return false; }