![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
vscode
黄金一鸣
代码 代码
展开
-
shell-linux-setting
"terminal.integrated.shell.linux": "/usr/bin/zsh","terminal.integrated.fontFamily": "Menlo for Powerline","window.zoomLevel": 0,"workbench.colorTheme": "One Dark Pro Vivid","explorer.confirmDe...原创 2019-08-31 10:06:17 · 190 阅读 · 0 评论 -
typescript中tree类型数据转换成扁平型数据
//别着急慢慢来肯定能做出来的,下面我的思路给你,我用的是typescriptinterfaceentity{ id:number; title:string; children?:children[]; } interfacechildren{ id:number; title:...原创 2019-09-17 16:27:44 · 1236 阅读 · 0 评论 -
typescript递归将扁平型数据转成tree
先上代码,下面我在说我的思路const lists=[ { id: 3, title: '子级2',parentId:1 }, { id: 2, title: '子级1',parentId:1 }, { id: 1, title: '父级1' }, { id: 4, title: '父级2' }, { id: 5, title: '子级3', p...原创 2019-10-11 15:35:50 · 998 阅读 · 0 评论