树形 多层嵌套 取出每层的id 放在一个数组中

let data = [ { firstLetter: 'A', fullName: '安徽省安庆市大观区', id: 1, childrens: [ { firstLetter: 'B', fullName: '安徽', id: 2, childrens: [ { firstLetter: 'D'
posted @ 2022-03-25 13:56  bingxiaoxiao  阅读(80)  评论(0编辑  收藏  举报