摘要: 识别正则表达式是否匹配 console.log(/[a-zA-Z]+/.test("hello")); console.log(/./.test("除了回车换行以为的任意字符"));//true console.log(/.*/.test("0个到多个"));//true console.log(/ 阅读全文
posted @ 2020-08-14 08:20 额头有王的喵 阅读(726) 评论(0) 推荐(0) 编辑