摘要: Object.assign合并对象 Object.assign(target,source1,source2); target目标对象,后面可若干个源对象 let arr = {}; let a1 = {a:'1'}; let a2 = {b:'2'}; console.log(Object.ass 阅读全文
posted @ 2021-03-28 11:25 小小只蜗牛 阅读(411) 评论(0) 推荐(0) 编辑