摘要: function buildTree(list){ let temp = {}; let tree = {}; for(let i in list){ temp[list[i].id] = list[i]; } for(let i in temp){ if(temp[i].parent_id) { 阅读全文
posted @ 2019-09-14 15:40 little_ab 阅读(735) 评论(0) 推荐(0)