let a = { A: 1 }; let b = { B: 2 }; let ab = { ...a, ...b }; console.log(ab);
本文标题:es6对象合并
本文链接:https://www.haomeiwen.com/subject/gmjpuhtx.html
网友评论