标签:ddr gif delete sso json creat 深拷贝 bsp ring
对象的合并:Object.assign 例如:let obj1 = {name:"小明",age:18}; let obj2 = {addr:"Aminder",job:"enjer"}; Object.assong(obj1,obj2); 对象的删除:delete 对象的创建:①:new Object() ②:Object.create() 对象的深拷贝:①:JSON.parse(JSON.stringify()) 例如:var obj1 = {a:[1,2,3]}; var obj2 = JSON.parese(JSON.stringify(obj1)); ②:Object.create()
标签:ddr gif delete sso json creat 深拷贝 bsp ring
原文地址:https://www.cnblogs.com/zyb99812/p/12179764.html