我在一个点卡住了。我有一个consolidatedObj
对象
const consolidatedObj = {
"flag": "Data Concept",
"UpdateDC": {
"id": 732,
"oId": 695112,
"cType": "DCON",
"clientId": 1,
"aId": 236,
"fType": "DAT_OWN",
"details_1": {},
"details_2": {}
}
}
我有一个anotherPayload
对象,我需要将它附加到统一对象
const anotherPayload = {
flag: 'LOB',
UpdateLOB: {
assessmentId: +this.assessmentId,
lobId: +this.lob['id'],
}
};
低于O/P
const consolidatedObj = {
"flag": "Data Concept | LOB",
"UpdateDC": {
"id": 732,
"oId": 695112,
"cType": "DCON",
"clientId": 1,
"aId": 236,
"fType": "DAT_OWN",
"details_1": {},
"details_2": {}
},
"UpdateLOB": {
"assessmentId": +this.assessmentId,
"lobId": +this.lob['id'],
}
}
如何将下面的对象添加到现有的合并对象中,并附加由pipe(|)
符号分隔的标志值
1条答案
按热度按时间biswetbf1#