两个数组对象 相等 方法

青旅半醒 2023-03-13 15:20 21阅读 0赞
  1. let data1 = [ { appName: '应用1', capacity: 233456 }, { appName: '应用2', capacity: 124535 }]
  2. var data2=[];
  3. data1.map((currentValue,index,arry)=>{
  4. data2.push({ 'name': currentValue.appName, 'value': currentValue.capacity })
  5. })
  6. let arr=[]
  7. this.result.forEach(e=>{
  8. let obj ={}
  9. obj.name=e.xm
  10. obj.bdgxId=e.bdgxId
  11. obj.bsrType=e.bsrType
  12. obj.smrzType=e.smrzType
  13. obj.mobile=e.mobile
  14. arr.push(obj)
  15. })
  16. this.actions=arr

发表评论

表情:
评论列表 (有 0 条评论,21人围观)

还没有评论,来说两句吧...

相关阅读