let obj = {
column:{
__id:'1',
align: "center"
className: "test-name"
key: "singlePrice",
....
},
index: 0
row:{
applyNum: 1
brandName: "世达"
brandPk: "ca36dcac632c4dc0b704aaa88ec01fdb"
categoryName: "物料类1",
...
}
}
let obj2 = {
column:{
__id:'1',
align: "center"
className: "test-name"
key: "singlePrice",
....
},
index: 1
row:{
applyNum: 2
brandName: "11"
brandPk: "ca36dcac632c4dc0b704aaa88ec01fdb"
categoryName: "物料类2",
...
}
}
先有一个obj ,当我获取了第二个obj2的时候,里面column.__id是一样的,怎么样判断让obj2覆盖obj的呢
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…