合并对象的方法

合并对象的方法

Object.assign ( )
使用方式: Object.assign(合并的对象,传入合并中的对象…)

用Es6的 展开运算符
{…{ }, …{ } }

你可能感兴趣的:(合并对象的方法)