两个数组对象 相等 方法
let data1 = [ { appName: '应用1', capacity: 233456 }, { appName: '应用2', capacity: 124535 }]
var data2=[];
data1.map((currentValue,index,arry)=>{
data2.push({ 'name': currentValue.appName, 'value': currentValue.capacity })
})
let arr=[]
this.result.forEach(e=>{
let obj ={}
obj.name=e.xm
obj.bdgxId=e.bdgxId
obj.bsrType=e.bsrType
obj.smrzType=e.smrzType
obj.mobile=e.mobile
arr.push(obj)
})
this.actions=arr
还没有评论,来说两句吧...