parentArr: [ { childrenArrs: [ { mixArr: '2' }, { mixArr:'2' }, ] },]
把childrenArrs: [ { mixArr: '2' }, { mixArr:'2' }, ]加入这个数组中
let newObj = {} let childrenArrs = [{mixArr:'2'}] // console.log(childrenArrs) newObj["childrenArrs"] = childrenArrs // console.log(newObj) this.parentArr.push(newObj)