object.assign是用来合并对象的!
用法:
1,先安装
npm install --save-dev babel-plugin-transform-object-assign
2,
In
Object.assign(a, b);//a,代表传入的对象,b,带便对象
COPY
Out
var _extends = ...;
_extends(a, b);
object.assign是用来合并对象的!
用法:
1,先安装
npm install --save-dev babel-plugin-transform-object-assign
2,
In
Object.assign(a, b);//a,代表传入的对象,b,带便对象
COPY
Out
var _extends = ...;
_extends(a, b);
转载于:https://www.cnblogs.com/lzh900926/p/6165171.html