摘要: 匹配正则 使用 .test() 方法 let testString = "My test string"; let testRegex = /string/; testRegex.test(testString); 匹配多个模式 使用操作符号 | const regex = /yes|no|mayb 阅读全文
posted @ 2019-05-09 19:51 进军的蜗牛 阅读(410) 评论(0) 推荐(0) 编辑