摘要: JavaScript的RegExp对象有两种创建方式,一种是字面量,一种是对象。var r = /pattern/attributes或者new RegExp(pattern, attributes);参数pattern是一个字符串,指定了正则表达式的模式或其他正则表达式。参数attributes是... 阅读全文
posted @ 2015-01-19 23:55 光闪 阅读(283) 评论(0) 推荐(0) 编辑