标签:
‘use strict‘; let obj = { name:‘zpf‘, age:18, parent:{ name:‘pc‘, age:20 } }; let obj2 = Object.assign({},obj); obj2.name = ‘aaa‘; console.log(obj);
ES6深度克隆对象
原文地址:http://www.cnblogs.com/tween/p/5543755.html