摘要: let listToTree = function(list,rootId=0){ const map = new Map(); const tree =[]; for(const item of list){ map.set(item.id,{...item,children:[]}); } fo 阅读全文
posted @ 2025-04-24 11:30 孙同学你好 阅读(7) 评论(0) 推荐(0)