|
53 | 53 |
|
54 | 54 | # 二、目录 |
55 | 55 |
|
56 | | -<!-- TOC --> |
57 | | - |
58 | | -- [一、介绍](#一介绍) |
59 | | -- [二、目录](#二目录) |
60 | | -- [三、正文](#三正文) |
61 | | - - [1. ES6](#1-es6) |
62 | | - - [1.1 let 和 const命令](#11-let-和-const命令) |
63 | | - - [1.1.1 let 命令](#111-let-命令) |
64 | | - - [1.1.2 const 命令](#112-const-命令) |
65 | | - - [1.2 变量的解构赋值](#12-变量的解构赋值) |
66 | | - - [1.2.1 数组](#121-数组) |
67 | | - - [1.2.2 对象的解构赋值](#122-对象的解构赋值) |
68 | | - - [1.2.3 字符串的解构赋值](#123-字符串的解构赋值) |
69 | | - - [1.2.4 数值和布尔值的解构赋值](#124-数值和布尔值的解构赋值) |
70 | | - - [1.2.5 函数参数的解构赋值](#125-函数参数的解构赋值) |
71 | | - - [1.2.6 应用](#126-应用) |
72 | | - - [1.3 字符串的拓展](#13-字符串的拓展) |
73 | | - - [1.3.1 includes(),startsWith(),endsWith()](#131-includesstartswithendswith) |
74 | | - - [1.3.2 repeat()](#132-repeat) |
75 | | - - [1.3.3 padStart(),padEnd()](#133-padstartpadend) |
76 | | - - [1.3.4 模版字符串](#134-模版字符串) |
77 | | - - [1.4 正则的拓展](#14-正则的拓展) |
78 | | - - [1.4.1 介绍](#141-介绍) |
79 | | - - [1.4.2 字符串的正则方法](#142-字符串的正则方法) |
80 | | - - [1.4.3 u修饰符](#143-u修饰符) |
81 | | - - [1.4.4 y修饰符](#144-y修饰符) |
82 | | - - [1.4.5 flags属性](#145-flags属性) |
83 | | - - [1.5 数值的拓展](#15-数值的拓展) |
84 | | - - [1.5.1 Number.isFinite(), Number.isNaN()](#151-numberisfinite-numberisnan) |
85 | | - - [1.5.2 Number.parseInt(), Number.parseFloat()](#152-numberparseint-numberparsefloat) |
86 | | - - [1.5.3 Number.isInteger()](#153-numberisinteger) |
87 | | - - [1.5.4 Math对象的拓展](#154-math对象的拓展) |
88 | | - - [1.5.5 指数运算符](#155-指数运算符) |
89 | | - - [1.6 函数的拓展](#16-函数的拓展) |
90 | | - - [1.6.1 参数默认值](#161-参数默认值) |
91 | | - - [1.6.2 rest 参数](#162-rest-参数) |
92 | | - - [1.6.3 name 属性](#163-name-属性) |
93 | | - - [1.6.4 箭头函数](#164-箭头函数) |
94 | | - - [1.6.5 双冒号运算符](#165-双冒号运算符) |
95 | | - - [1.7 数组的拓展](#17-数组的拓展) |
96 | | - - [1.7.1 拓展运算符](#171-拓展运算符) |
97 | | - - [1.7.2 Array.from()](#172-arrayfrom) |
98 | | - - [1.7.3 Array.of()](#173-arrayof) |
99 | | - - [1.7.4 find()和findIndex()](#174-find和findindex) |
100 | | - - [1.7.5 fill()](#175-fill) |
101 | | - - [1.7.6 entries(),keys(),values()](#176-entrieskeysvalues) |
102 | | - - [1.7.7 includes()](#177-includes) |
103 | | - - [1.7.8 flat(),flatMap()](#178-flatflatmap) |
104 | | - - [1.8 对象的拓展](#18-对象的拓展) |
105 | | - - [1.8.1 属性的简洁表示](#181-属性的简洁表示) |
106 | | - - [1.8.2 属性名表达式](#182-属性名表达式) |
107 | | - - [1.8.3 Object.is()](#183-objectis) |
108 | | - - [1.8.4 Object.assign()](#184-objectassign) |
109 | | - - [1.9 Symbol](#19-symbol) |
110 | | - - [1.9.1 介绍](#191-介绍) |
111 | | - - [1.9.2 Symbol作为属性名](#192-symbol作为属性名) |
112 | | - - [1.9.3 应用:消除魔术字符串](#193-应用消除魔术字符串) |
113 | | - - [1.9.4 属性名遍历](#194-属性名遍历) |
114 | | - - [1.9.5 Symbol.for()、Symbol.keyFor()](#195-symbolforsymbolkeyfor) |
115 | | - - [1.9.6 内置的Symbol值](#196-内置的symbol值) |
116 | | - - [1.10 Set和Map数据结构](#110-set和map数据结构) |
117 | | - - [1.10.1 Set](#1101-set) |
118 | | - - [1.10.2 Set的应用](#1102-set的应用) |
119 | | - - [1.10.3 Map](#1103-map) |
120 | | - - [1.10.4 Map与其他数据结构互相转换](#1104-map与其他数据结构互相转换) |
121 | | - - [1.11 Proxy](#111-proxy) |
122 | | - - [1.11.1 基础使用](#1111-基础使用) |
123 | | - - [1.11.2 取消Proxy实例](#1112-取消proxy实例) |
124 | | - - [1.11.3 实现 Web服务的客户端](#1113-实现-web服务的客户端) |
125 | | - - [1.12 Promise对象](#112-promise对象) |
126 | | - - [1.12.1 概念](#1121-概念) |
127 | | - - [1.12.2 基本使用](#1122-基本使用) |
128 | | - - [1.12.3 Promise.prototype.then()](#1123-promiseprototypethen) |
129 | | - - [1.12.4 Promise.prototype.catch()](#1124-promiseprototypecatch) |
130 | | - - [1.12.5 Promise.prototype.finally()](#1125-promiseprototypefinally) |
131 | | - - [1.12.6 Promise.all()](#1126-promiseall) |
132 | | - - [1.12.7 Promise.race()](#1127-promiserace) |
133 | | - - [1.12.8 Promise.resolve()](#1128-promiseresolve) |
134 | | - - [1.12.9 Promise.reject()](#1129-promisereject) |
135 | | - - [1.13 Iterator和 for...of循环](#113-iterator和-forof循环) |
136 | | - - [1.13.1 Iterator遍历器概念](#1131-iterator遍历器概念) |
137 | | - - [1.13.2 Iterator遍历过程](#1132-iterator遍历过程) |
138 | | - - [1.13.3 默认Iterator接口](#1133-默认iterator接口) |
139 | | - - [1.13.4 Iterator使用场景](#1134-iterator使用场景) |
140 | | - - [1.13.5 for...of循环](#1135-forof循环) |
141 | | - - [1.13.6 跳出for...of](#1136-跳出forof) |
142 | | - - [1.14 Generator函数和应用](#114-generator函数和应用) |
143 | | - - [1.14.1 基本概念](#1141-基本概念) |
144 | | - - [1.14.2 yield表达式](#1142-yield表达式) |
145 | | - - [1.14.3 next方法](#1143-next方法) |
146 | | - - [1.14.4 for...of循环](#1144-forof循环) |
147 | | - - [1.14.5 Generator.prototype.throw()](#1145-generatorprototypethrow) |
148 | | - - [1.14.6 Generator.prototype.return()](#1146-generatorprototypereturn) |
149 | | - - [1.14.7 next()/throw()/return()共同点](#1147-nextthrowreturn共同点) |
150 | | - - [1.14.8 yield* 表达式](#1148-yield-表达式) |
151 | | - - [1.14.9 应用场景](#1149-应用场景) |
152 | | - - [1.15 Class语法和继承](#115-class语法和继承) |
153 | | - - [1.15.1 介绍](#1151-介绍) |
154 | | - - [1.15.2 constructor()方法](#1152-constructor方法) |
155 | | - - [1.15.3 类的实例对象](#1153-类的实例对象) |
156 | | - - [1.15.4 Class表达式](#1154-class表达式) |
157 | | - - [1.15.5 私有方法和私有属性](#1155-私有方法和私有属性) |
158 | | - - [1.15.6 this指向问题](#1156-this指向问题) |
159 | | - - [1.15.7 Class的getter和setter](#1157-class的getter和setter) |
160 | | - - [1.15.8 Class的generator方法](#1158-class的generator方法) |
161 | | - - [1.15.9 Class的静态方法](#1159-class的静态方法) |
162 | | - - [1.15.10 Class的静态属性和实例属性](#11510-class的静态属性和实例属性) |
163 | | - - [1.15.11 Class的继承](#11511-class的继承) |
164 | | - - [1.16 Module语法和加载实现](#116-module语法和加载实现) |
165 | | - - [1.16.1 介绍](#1161-介绍) |
166 | | - - [1.16.2 严格模式](#1162-严格模式) |
167 | | - - [1.16.3 export命令](#1163-export命令) |
168 | | - - [1.16.4 import命令](#1164-import命令) |
169 | | - - [1.16.5 模块的整体加载](#1165-模块的整体加载) |
170 | | - - [1.16.6 export default 命令](#1166-export-default-命令) |
171 | | - - [1.16.7 export 和 import 复合写法](#1167-export-和-import-复合写法) |
172 | | - - [1.16.8 浏览器中的加载规则](#1168-浏览器中的加载规则) |
173 | | - - [2. ES7](#2-es7) |
174 | | - - [2.1 Array.prototype.includes()方法](#21-arrayprototypeincludes方法) |
175 | | - - [2.2 指数操作符(**)](#22-指数操作符) |
176 | | - - [3. ES8](#3-es8) |
177 | | - - [3.1 async函数](#31-async函数) |
178 | | - - [3.1.1 介绍](#311-介绍) |
179 | | - - [3.1.2 基本用法](#312-基本用法) |
180 | | - - [3.1.3 返回Promise对象](#313-返回promise对象) |
181 | | - - [3.1.4 await命令](#314-await命令) |
182 | | - - [3.1.5 使用注意](#315-使用注意) |
183 | | - - [3.2 Promise.prototype.finally()](#32-promiseprototypefinally) |
184 | | - - [3.3 Object.values(),Object.entries()](#33-objectvaluesobjectentries) |
185 | | - - [3.3.1 Object.values()](#331-objectvalues) |
186 | | - - [3.3.2 Object.entries()](#332-objectentries) |
187 | | - - [3.4 Object.getOwnPropertyDescriptors()](#34-objectgetownpropertydescriptors) |
188 | | - - [3.5 字符串填充 padStart和padEnd](#35-字符串填充-padstart和padend) |
189 | | - - [3.6 函数参数列表与调用中的尾部逗号](#36-函数参数列表与调用中的尾部逗号) |
190 | | - - [3.7 共享内存与原子操作](#37-共享内存与原子操作) |
191 | | - - [4. ES9](#4-es9) |
192 | | - - [4.1 对象的拓展运算符](#41-对象的拓展运算符) |
193 | | - - [4.1.1 介绍](#411-介绍) |
194 | | - - [4.1.2 使用场景](#412-使用场景) |
195 | | - - [4.2 正则表达式 s 修饰符](#42-正则表达式-s-修饰符) |
196 | | - - [4.3 异步遍历器](#43-异步遍历器) |
197 | | - - [4.3.1 异步遍历的接口](#431-异步遍历的接口) |
198 | | - - [4.3.2 for await...of](#432-for-awaitof) |
199 | | - - [4.3.3 异步Generator函数](#433-异步generator函数) |
200 | | - - [4.3.4 yield* 语句](#434-yield-语句) |
201 | | - - [5. 知识补充](#5-知识补充) |
202 | | - - [5.1 块级作用域](#51-块级作用域) |
203 | | - - [5.2 ES5/6对数组空位的处理](#52-es56对数组空位的处理) |
204 | | -- [四、结语](#四结语) |
205 | | - - [参考文章](#参考文章) |
206 | | - - [推荐文章](#推荐文章) |
207 | | - |
208 | | -<!-- /TOC --> |
| 56 | +<!-- TOC -->autoauto- [一、介绍](#一介绍)auto- [二、目录](#二目录)auto- [三、正文](#三正文)auto - [1. ES6](#1-es6)auto - [1.1 let 和 const命令](#11-let-和-const命令)auto - [1.1.1 let 命令](#111-let-命令)auto - [1.1.2 const 命令](#112-const-命令)auto - [1.2 变量的解构赋值](#12-变量的解构赋值)auto - [1.2.1 数组](#121-数组)auto - [1.2.2 对象的解构赋值](#122-对象的解构赋值)auto - [1.2.3 字符串的解构赋值](#123-字符串的解构赋值)auto - [1.2.4 数值和布尔值的解构赋值](#124-数值和布尔值的解构赋值)auto - [1.2.5 函数参数的解构赋值](#125-函数参数的解构赋值)auto - [1.2.6 应用](#126-应用)auto - [1.3 字符串的拓展](#13-字符串的拓展)auto - [1.3.1 includes(),startsWith(),endsWith()](#131-includesstartswithendswith)auto - [1.3.2 repeat()](#132-repeat)auto - [1.3.3 padStart(),padEnd()](#133-padstartpadend)auto - [1.3.4 模版字符串](#134-模版字符串)auto - [1.4 正则的拓展](#14-正则的拓展)auto - [1.4.1 介绍](#141-介绍)auto - [1.4.2 字符串的正则方法](#142-字符串的正则方法)auto - [1.4.3 u修饰符](#143-u修饰符)auto - [1.4.4 y修饰符](#144-y修饰符)auto - [1.4.5 flags属性](#145-flags属性)auto - [1.5 数值的拓展](#15-数值的拓展)auto - [1.5.1 Number.isFinite(), Number.isNaN()](#151-numberisfinite-numberisnan)auto - [1.5.2 Number.parseInt(), Number.parseFloat()](#152-numberparseint-numberparsefloat)auto - [1.5.3 Number.isInteger()](#153-numberisinteger)auto - [1.5.4 Math对象的拓展](#154-math对象的拓展)auto - [1.5.5 指数运算符](#155-指数运算符)auto - [1.6 函数的拓展](#16-函数的拓展)auto - [1.6.1 参数默认值](#161-参数默认值)auto - [1.6.2 rest 参数](#162-rest-参数)auto - [1.6.3 name 属性](#163-name-属性)auto - [1.6.4 箭头函数](#164-箭头函数)auto - [1.6.5 双冒号运算符](#165-双冒号运算符)auto - [1.7 数组的拓展](#17-数组的拓展)auto - [1.7.1 拓展运算符](#171-拓展运算符)auto - [1.7.2 Array.from()](#172-arrayfrom)auto - [1.7.3 Array.of()](#173-arrayof)auto - [1.7.4 find()和findIndex()](#174-find和findindex)auto - [1.7.5 fill()](#175-fill)auto - [1.7.6 entries(),keys(),values()](#176-entrieskeysvalues)auto - [1.7.7 includes()](#177-includes)auto - [1.7.8 flat(),flatMap()](#178-flatflatmap)auto - [1.8 对象的拓展](#18-对象的拓展)auto - [1.8.1 属性的简洁表示](#181-属性的简洁表示)auto - [1.8.2 属性名表达式](#182-属性名表达式)auto - [1.8.3 Object.is()](#183-objectis)auto - [1.8.4 Object.assign()](#184-objectassign)auto - [1.9 Symbol](#19-symbol)auto - [1.9.1 介绍](#191-介绍)auto - [1.9.2 Symbol作为属性名](#192-symbol作为属性名)auto - [1.9.3 应用:消除魔术字符串](#193-应用消除魔术字符串)auto - [1.9.4 属性名遍历](#194-属性名遍历)auto - [1.9.5 Symbol.for()、Symbol.keyFor()](#195-symbolforsymbolkeyfor)auto - [1.9.6 内置的Symbol值](#196-内置的symbol值)auto - [1.10 Set和Map数据结构](#110-set和map数据结构)auto - [1.10.1 Set](#1101-set)auto - [1.10.2 Set的应用](#1102-set的应用)auto - [1.10.3 Map](#1103-map)auto - [1.10.4 Map与其他数据结构互相转换](#1104-map与其他数据结构互相转换)auto - [1.11 Proxy](#111-proxy)auto - [1.11.1 基础使用](#1111-基础使用)auto - [1.11.2 取消Proxy实例](#1112-取消proxy实例)auto - [1.11.3 实现 Web服务的客户端](#1113-实现-web服务的客户端)auto - [1.12 Promise对象](#112-promise对象)auto - [1.12.1 概念](#1121-概念)auto - [1.12.2 基本使用](#1122-基本使用)auto - [1.12.3 Promise.prototype.then()](#1123-promiseprototypethen)auto - [1.12.4 Promise.prototype.catch()](#1124-promiseprototypecatch)auto - [1.12.5 Promise.prototype.finally()](#1125-promiseprototypefinally)auto - [1.12.6 Promise.all()](#1126-promiseall)auto - [1.12.7 Promise.race()](#1127-promiserace)auto - [1.12.8 Promise.resolve()](#1128-promiseresolve)auto - [1.12.9 Promise.reject()](#1129-promisereject)auto - [1.13 Iterator和 for...of循环](#113-iterator和-forof循环)auto - [1.13.1 Iterator遍历器概念](#1131-iterator遍历器概念)auto - [1.13.2 Iterator遍历过程](#1132-iterator遍历过程)auto - [1.13.3 默认Iterator接口](#1133-默认iterator接口)auto - [1.13.4 Iterator使用场景](#1134-iterator使用场景)auto - [1.13.5 for...of循环](#1135-forof循环)auto - [1.13.6 跳出for...of](#1136-跳出forof)auto - [1.14 Generator函数和应用](#114-generator函数和应用)auto - [1.14.1 基本概念](#1141-基本概念)auto - [1.14.2 yield表达式](#1142-yield表达式)auto - [1.14.3 next方法](#1143-next方法)auto - [1.14.4 for...of循环](#1144-forof循环)auto - [1.14.5 Generator.prototype.throw()](#1145-generatorprototypethrow)auto - [1.14.6 Generator.prototype.return()](#1146-generatorprototypereturn)auto - [1.14.7 next()/throw()/return()共同点](#1147-nextthrowreturn共同点)auto - [1.14.8 yield* 表达式](#1148-yield-表达式)auto - [1.14.9 应用场景](#1149-应用场景)auto - [1.15 Class语法和继承](#115-class语法和继承)auto - [1.15.1 介绍](#1151-介绍)auto - [1.15.2 constructor()方法](#1152-constructor方法)auto - [1.15.3 类的实例对象](#1153-类的实例对象)auto - [1.15.4 Class表达式](#1154-class表达式)auto - [1.15.5 私有方法和私有属性](#1155-私有方法和私有属性)auto - [1.15.6 this指向问题](#1156-this指向问题)auto - [1.15.7 Class的getter和setter](#1157-class的getter和setter)auto - [1.15.8 Class的generator方法](#1158-class的generator方法)auto - [1.15.9 Class的静态方法](#1159-class的静态方法)auto - [1.15.10 Class的静态属性和实例属性](#11510-class的静态属性和实例属性)auto - [1.15.11 Class的继承](#11511-class的继承)auto - [1.16 Module语法和加载实现](#116-module语法和加载实现)auto - [1.16.1 介绍](#1161-介绍)auto - [1.16.2 严格模式](#1162-严格模式)auto - [1.16.3 export命令](#1163-export命令)auto - [1.16.4 import命令](#1164-import命令)auto - [1.16.5 模块的整体加载](#1165-模块的整体加载)auto - [1.16.6 export default 命令](#1166-export-default-命令)auto - [1.16.7 export 和 import 复合写法](#1167-export-和-import-复合写法)auto - [1.16.8 浏览器中的加载规则](#1168-浏览器中的加载规则)auto - [2. ES7](#2-es7)auto - [2.1 Array.prototype.includes()方法](#21-arrayprototypeincludes方法)auto - [2.2 指数操作符(**)](#22-指数操作符)auto - [3. ES8](#3-es8)auto - [3.1 async函数](#31-async函数)auto - [3.1.1 介绍](#311-介绍)auto - [3.1.2 基本用法](#312-基本用法)auto - [3.1.3 返回Promise对象](#313-返回promise对象)auto - [3.1.4 await命令](#314-await命令)auto - [3.1.5 使用注意](#315-使用注意)auto - [3.2 Promise.prototype.finally()](#32-promiseprototypefinally)auto - [3.3 Object.values(),Object.entries()](#33-objectvaluesobjectentries)auto - [3.3.1 Object.values()](#331-objectvalues)auto - [3.3.2 Object.entries()](#332-objectentries)auto - [3.4 Object.getOwnPropertyDescriptors()](#34-objectgetownpropertydescriptors)auto - [3.5 字符串填充 padStart和padEnd](#35-字符串填充-padstart和padend)auto - [3.6 函数参数列表与调用中的尾部逗号](#36-函数参数列表与调用中的尾部逗号)auto - [3.7 共享内存与原子操作](#37-共享内存与原子操作)auto - [4. ES9](#4-es9)auto - [4.1 对象的拓展运算符](#41-对象的拓展运算符)auto - [4.1.1 介绍](#411-介绍)auto - [4.1.2 使用场景](#412-使用场景)auto - [4.2 正则表达式 s 修饰符](#42-正则表达式-s-修饰符)auto - [4.3 异步遍历器](#43-异步遍历器)auto - [4.3.1 异步遍历的接口](#431-异步遍历的接口)auto - [4.3.2 for await...of](#432-for-awaitof)auto - [4.3.3 异步Generator函数](#433-异步generator函数)auto - [4.3.4 yield* 语句](#434-yield-语句)auto - [5. 知识补充](#5-知识补充)auto - [5.1 块级作用域](#51-块级作用域)auto - [5.2 ES5/6对数组空位的处理](#52-es56对数组空位的处理)auto- [四、结语](#四结语)auto - [参考文章](#参考文章)auto - [推荐文章](#推荐文章)auto - [微信公众号](#微信公众号)autoauto<!-- /TOC --> |
209 | 57 | # 三、正文 |
210 | 58 | ## 1. ES6 |
211 | 59 |
|
@@ -4774,4 +4622,4 @@ for (let i of arr) { |
4774 | 4622 | * [ECMAScript 2018 标准导读](https://zhuanlan.zhihu.com/p/27537439) |
4775 | 4623 |
|
4776 | 4624 | ## 微信公众号 |
4777 | | - |
| 4625 | + |
0 commit comments