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
posted @ 2017-05-11 11:45