2017年8月2日

JavaScript 正则表达式(RegExp)

摘要: 什么是RegExp RegExp是一种模式用来描述要检索的内容。 定义RegExp RegExp对象的方法 RegExp对象有3个方法:test()、exec()、compile() test() 检索字符串中指定的值。返回值为true或者false exec() 检索字符串中指定的值。返回值为找到 阅读全文

posted @ 2017-08-02 18:03 -Vic 阅读(140) 评论(0) 推荐(0)

导航