摘要:
1 语法 1.1 直接量语法 /pattern/attributes 1.2 创建RegExp对象 new RegExp(pattern, attributes) 1.3 说明 pattern是正则表达式,attributes是指修饰符如i,g,m2 RegExp 对象方法方法描述exec检索字符串中指定的值。返回找到的值,并确定其位置。test检索字符串中指定的值。返回 true 或 false。 //语法:RegExpObject.test(string) //说明:test() 方法检索字符串中的指定值。返回值是 true 或 false ... 阅读全文
posted @ 2012-01-30 11:11
忧忧夏天
阅读(5782)
评论(3)
推荐(0)
浙公网安备 33010602011771号