摘要: export function treeForeach(tree, func) { tree.forEach(data => { func(data) data.children && treeForeach(data.children, func) // 遍历子树 }) } 阅读全文
posted @ 2022-07-28 17:40 zy-lzh 阅读(351) 评论(0) 推荐(0)