javascript - Solve the meaning of js syntax sugar...
曾经蜡笔没有小新
曾经蜡笔没有小新 2017-05-19 10:31:48
0
3
485
 * [['hello'],['world','1','2']]
 * => [Array(1), Array(3)]
 * [['hello'],...[].slice.call(['world','1','2'], 0)]
 * => [Array(1), "world", "1", "2"]
 * [...['hello'],...[].slice.call(['world','1','2'], 0)]
 * => ["hello", "world", "1", "2"]
 

You can see the effect of adding syntax sugar.... But my level is limited and I can't find any information about... on the Internet. Can someone explain it to me? It’s better to have resources. Thanks.

曾经蜡笔没有小新
曾经蜡笔没有小新

reply all(3)
迷茫

https://developer.mozilla.org...

过去多啦不再A梦

ES6’s spread operator
http://www.108js.com/article/...

刘奇

Extension operator

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template