test()方法 用于检测一个字符串是否匹配某个模式 2020-05-31 本文已影响0人 Invictus_2635 const rue = new RegExp(字符串/数字/正则); rue.test(对比内容:字符串/数字/正则 ) //返回fales ture