49

ES2018 新增特性清单

 5 years ago
source link: https://juejin.im/post/5b353534f265da595f0d3f7e
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Rest/Spread 属性 rest 将对象的剩余属性复制到一个新对象中。 let { x, y, ...z } = { x: 1, y: 2, a: 3, b: 4 }; x; // 1 y; // 2 z; // { a: 3, b: 4 } sprea

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK