bilibili秋招前端一面面经(已过
小破站的面试,为了情怀而投,代码题写了半个多小时还没写出来,代码能力好差…
1.在自己做的项目当中的技术选型是怎么做的?
2.使用tailwind有什么经验?有哪些常用的原子类?
3.手撕:字符串转树
const paths = ["a", "a/b/c", "a/e", "a/d"];
转化后为:
[
{
"title": "a",
"key": "a",
"children": [
{
"title": "b",
"key": "a/b",
"children": [
{
"title": "c",
"key": "a/b/c",
"children": [],
"selectable": true
}
],
"selectable": false
},
{
"title": "e",
"key": "a/e",
"children": [],
"selectable": true
},
{
"title": "d",
"key": "a/d",
"children": [],
"selectable": true
}
],
"selectable": true
}
4.在项目的调优方面有什么经验,有哪些常用的构建工具,npm打包的经验有哪些
5.虚拟列表和无限滚动是如何实现的?