随笔分类 -  js

js 正则(自己一点点的笔记)
摘要:alert(/[abc]/.test("c")); //true alert("a bat ,a Cat,a fAt bat ,a faT cat".match(/[bcf]at/gi)); //bat,Cat,fAt,bat,faT,cat reg.test(str) str.match(reg) 阅读全文

posted @ 2017-05-11 11:45 _jackie 阅读(290) 评论(0) 推荐(0)

导航