摘要: js合并对象-- Object.assign(obj1,obj2) js克隆对象-- var obj = {a:1,b:2} var newObj = JSON.parse(JSON.stringify(obj)); newObj.a=3; console.log(obj); console.log 阅读全文
posted @ 2019-01-08 14:24 ThisCall 阅读(181) 评论(0) 推荐(0) 编辑