// objA ()
objA = {
a:"",
b:[],
c:{
c1: "",
c2: [],
c3: {
c31:"",
c32:[],
c33:{}
}
}
}
// objBobjA
objB = {
c:{
c3:{
c32:["apple"]
}
}
}
requires that the values in objB be assigned to objA and retain the structure of the complete objA
// :
objC = {
a:"",
b:[],
c:{
c1: "",
c2: [],
c3: {
c31:"",
c32:["apple"],
c33:{}
}
}
}
using the Object.assign () method to merge objects will cause some key values that are not in ObjB to be merged, resulting in the loss of structure and ObjA structure. How to deal with it?