会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
坚持g
博客园
首页
新随笔
联系
管理
订阅
2018年6月8日
正则常用方法test,match,search,replace
摘要: test: reg.test(str) 找到返回true,否则false 找到第一个后就会停止向后找 let str = 'bacdera'; let reg = /a/; console.log(reg.test(str)) = true match: str.match(reg) 不匹配返回nu
阅读全文
posted @ 2018-06-08 12:35 坚持g
阅读(779)
评论(0)
推荐(0)
编辑
公告