滴滴前端实习
一面(50min)
-
自我介绍
-
项目介绍、难点介绍
-
做了哪些优化
-
分包怎么分的,分完之后优化了什么
-
依赖用了 cdn 之后主要优化了什么
-
介绍下懒加载
-
登录怎么做的
-
url 到界面
-
http2 一次最多能发几个请求
-
介绍下宏任务微任务
-
讲讲事件循环
-
webpack 有哪些 loader
-
webpack 主要作用是什么
-
webpack HMR TreeShaking 原理
-
vite 和 webpack 的区别
-
vite 兼容性如何
-
vite 为什么依赖 esm
-
vue3 diff 算法
-
vue3 diff 算法的时间复杂度是多少
-
vue3 双向绑定原理
-
vue2 vue3 响应式原理区别、vue2 响应式有什么缺点
-
js 数组有哪些方法
-
看输出:
async function async1() { console.log('async1 start') await async2() console.log('async1 end') } async function async2() { console.log('async2') } console.log('script start') setTimeout(function () { console.log('setTimeout') }, 0) async1() new Promise(function (resolve) { console.log('promise1') resolve(1) }).then(function (res) { console.log('promise2', res) }).then(function (res) { console.log('promise3', res) }) console.log('script end')
-
写题:数组拍平后排序
-
反问
屏幕共享的时候面试官:”你游戏还挺多哈......“。。。我汗流浃背了。