https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Object/assign
https://www.jianshu.com/p/f9ec860ecd81
https://jingyan.baidu.com/article/f3e34a12456177b5ea653535.html
es6之扩展运算符 三个点 https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Operators/new
https://blog.csdn.net/astonishqft/article/details/82899965
es6之扩展运算符 三个点:同样,如果用户自定义的属性,放在扩展运算符后面,则扩展运算符内部的同名属性会被覆盖掉。
letbar={a:1,b:2};letbaz={...bar,...{a:2,b:4}};// {a: 2, b: 4}
网友评论