找到樹中指定id的全部父節點

const data = [{ id: 1, children: [{ id: 2, children: [{ id: 3, }, { id: 4, }], }], }, { id: 5, children: [{ id: 6,
相關文章
相關標籤/搜索