摘要: JS正则 test -判断字符串是否符合规定的正则 例: var rep = /\d+/ 注:javascript正则表达式格式为/../ rep.test("dfafadfadf552dfdafds")结果为true exec -获取匹配的数据 rep = /\d+/ str = "jsafkaj 阅读全文
posted @ 2018-03-13 22:37 CanSun 阅读(101) 评论(0) 推荐(0) 编辑