摘要: function buildTree(arr, parentId = null) { let tree = []; for (let i = 0; i < arr.length; i++) { let item = arr[i]; if (item.parentId parentId) { let 阅读全文
posted @ 2023-03-27 09:15 chenlw101 阅读(24) 评论(0) 推荐(0) 编辑