摘要: 树形扁平化方法 // 树形扁平化方法 const flatten = function (arr) { const res = []; // 用于存储递归结果(扁平数据) // 递归函数 const fn = (source) => { source.forEach((el) => { res.pu 阅读全文
posted @ 2021-12-01 14:50 挽你手 阅读(171) 评论(0) 推荐(0) 编辑