var Object1={a:1,b:2};
var Object2=Object.assign({c:3},Object1);//结果是{a:1,b:2,c:3};
jq对象合并
最新推荐文章于 2024-07-05 18:29:01 发布
var Object1={a:1,b:2};
var Object2=Object.assign({c:3},Object1);//结果是{a:1,b:2,c:3};