摘要: 命名捕获 语法 : ?<name> 一:举个栗子 我们要把从2018-05-20取出年月日 1:普通方法 1 let str = '2018-05-20'; 2 let reg1 = /(\d{4})-(\d{2})-(\d{2})/; 3 let arr = str.match(reg1); 4 阅读全文
posted @ 2018-05-20 17:08 十年雪落 阅读(1988) 评论(0) 推荐(0) 编辑