太阳男子 2022-05-04 13:55:49
let list = [{
id: '1',
children: [{
id: '11',
children: [{
id: '111'
}, {
id: '112'
}]
}]
}];
function _find(list) {
let res = [];
list.forEach(ele => {
res.push(ele.id);
if(ele.children && Array.isArray(ele.children)) {
res = res.concat(_find(ele.children))
}
});
return res;
}
太阳男子 2022-05-04 13:42:16
@shinglove 哈哈哈哈,临时插入了一个掘金投票活动,耽搁了一周,接下来就会接着更新 TypeScript 系列
- 共 1 页
- 1
上面说的都挺多了,我补充个header压缩吧,23333
这个在http 1.1中,jwt太大了真的是还不能压缩占据了很多带宽,2.0后可以压缩头部,还是很不错滴~
第 15 题:简单讲解一下 http2 的多路复用