将一个json对象属性值赋值到另一个json中

 

  1.  for(var item in json1){
  2.            json2[item]=json1[item];
  3.     }

例:

结果:

转自于:https://blog.csdn.net/qq_40580023/article/details/84548342

posted @ 2020-07-30 12:00  Ao_min  阅读(2263)  评论(0编辑  收藏  举报