【发布时间】:2018-10-11 16:09:03
【问题描述】:
我有两个 JSON 对象,我想将 newData 附加到现有数据中。
existingData = {"School Name" : "Albert"}
newData = {"Teacher Name" : "Ms. Mithcell"}
这是我想要的输出:
existingData = {"School Name" : "Albert" , "Teacher Name" : "Ms. Mithcell"};
我该怎么做?
【问题讨论】:
-
你用谷歌搜索了吗?提示:搜索“合并 javascript 对象”。
标签: javascript json