将一个json对象属性值赋值到另一个json中 for(var item in json1){ json2[item]=json1[item]; } 例: 结果: 转自于:https://blog.csdn.net/qq_40580023/article/details/84548342