JavaScript test() 方法 2019-12-27 本文已影响0人 北冥有鱼_425c test() 方法用于检测一个字符串是否匹配某个模式. 参考文档:https://www.runoob.com/jsref/jsref-test-regexp.html