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.虚拟列表和无限滚动是如何实现的?

全部评论

相关推荐

09-04 20:33
已编辑
门头沟学院 前端工程师
查看27道真题和解析
点赞 评论 收藏
分享
评论
点赞
6
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务