let a = { a: '', b: '' },b = { a: 1, b: 4, c: 3 };想要得到 a={a:1,b:4};有一步到位的方法嗎? 像 Object.assign 類似的方法
js 2個對象合并 取屬性少的
慕森王
2018-12-16 09:08:33