Open huoxiangdong opened 6 years ago
use strict
var 全局声明 let 局部声明 const 常量声明
null
undefined
...
``
${}
includes
startsWith
ends
repeat()
Binary
Octal
Number
Math
length
Array.from
Array.of
find()
fill()
for ( of )
forEach()
filter
some
map
toString()
join()
entries()
in
Object.is()
Object.assign()
Symbol
add()
has()
delete()
clear()
size
set()
get()
has
get
set
apply
严格模式
use strict
声明
解构赋值
null
是一个对象undefined
不是一个值扩展 & rest 运算符
...
会开辟新的内存空间字符串
``
连接符 -->字符串拼接${}
插入变量includes
startsWith
ends
repeat()
复制数字
Binary
Octal
Number
Math
数组
length
-->类数组 -->Array.from
转数组Array.of
--> 字符串转数组find()
--> -->fill()
for ( of )
forEach()
filter
some
map
toString()
join()
entries()
in
对象
Object.is()
严格相等 --> ===同值相等Object.assign()
合并对象Symbol
箭头函数
Set & WeakSet
add()
has()
delete()
clear()
size
Map
set()
get()
delete()
size
has
Proxy
get
set
apply
--> 处理方法