一、需求
1、已经存在的对象
exampleLIst={
name:'张三',
sex:'男',
age:24
}
现有数组对象
individuality=[
{
education:'本科',
education:'河北'
}
]
2、期望
exampleLIst={
name:'张三',
sex:'男',
age:24,
individuality:[
{
education:'本科',
education:'河北'
}
]
}
二、实现
利用exampleLIst['individuality']=individuality
exampleLIst['individuality']=individuality
console.log(this.exampleLIst)