获取嵌套层的数组对象

img


想要获取monthlyBills下面的children数组对象,用于table数据绑定的数组用🙏

递归循环

你的这个数组是怎么呈现呢?

是想合并呈现呢 还是下标2的children?
let tableData= []
合并monthlyBills.forEach(item=>{
tableData =[...tableData,...item.children]
})

下标2的 monthlyBills[2].chilren