美文网首页
react 数组中添加json数据

react 数组中添加json数据

作者: CoderZb | 来源:发表于2020-07-28 13:42 被阅读0次
  var  tempLegalBackArray = [];
  if(data.data.legalImageBack){// 有身份证正面
    tempLegalBackArray = this.state.legalIdsBackFileList;
    var tempJson =  {
    uid:-1,
    status:"done",
    url:data.data.legalImageBack,
    };
    tempLegalBackArray.push(tempJson)
    console.log("构造的json为",tempLegalBackArray );
  }

相关文章

网友评论

      本文标题:react 数组中添加json数据

      本文链接:https://www.haomeiwen.com/subject/vuhoahtx.html