摘要: 一、正则 1.命名捕获 语法:(?<名字>) let str='2018-09-03'; let reg=/(?<year>\d{4})-(?<month>\d{2})-(?<day>\d{2})/; let {year,month,day}=str.match(reg).groups; conso 阅读全文
posted @ 2018-09-03 15:48 yuesu 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 一、Number 1.二进制:(binary) 0b let a=0b10; console.log(a);//2 2.八进制:(octal) 0o let a=0o10; console.log(a);//8 3.Number 方法 //1. Number.isNaN() 是否是NaN conso 阅读全文
posted @ 2018-09-03 14:37 yuesu 阅读(160) 评论(0) 推荐(0) 编辑