摘要: 语法: exec() : RegExpObject.exec(string) match() : stringObject.match(string) stringObject.match(regexp) 知识点: exec() 是RegExp对象的方法,而 match() 是String对象的方法。 都会返回包含第一个匹配项信息的数组;或者在没有匹配项的情况下返回null。 返... 阅读全文
posted @ 2016-03-21 15:49 oSHYo 阅读(294) 评论(0) 推荐(0) 编辑