CVTE前端实习一面,二面
已经过去很久了,今天补发一下,开头先吐槽一下,CVTE是我面过效率最慢的一家公司。
一面 12.28
笔试通过之后隔了差不多两周的时间才邮件联系面试
自我介绍+项目
typeof
原型,this指向
function Foo(){
function getValue(){
console.log(1)
}
return this
}
var getValue
function getValue(){
console.log(2)
}
Foo.getValue=function(){
console.log(3)
}
Foo.prototype.getValue=function(){
console.log(4)
}
getValue=function(){
console.log(5)
}
Foo().getValue()
getValue()
Foo.getValue()
new Foo().getValue()
new Foo.getValue() 实现readonly
type Readonly<T> = {
// handle
}; 实现图片懒加载思路
事件循环
防抖节流的引用场景
手写防抖
二面 1.19
一面跟二面隔了20天
自我介绍
平时怎么学习的
vue3和vue2的区别
如何挂载元素
算法题:计算最长耗时的组合,并打印出组合
interface Task {
// 任务id
id: string;
// 任务执行耗时
cost: number;
// 前置任务id,可选
dep?: string;
}
// 实例任务列表
const tasks: Task[] = [
{ id: "1", cost: 100 },
{ id: "2", cost: 100, dep: "4" },
{ id: "4", cost: 100, dep: "3" },
{ id: "3", cost: 100 },
];
// 输出
// 300
// 3 4 2
场景题:用户发现使用页面滚动时卡顿和图片加载不出来,分析是什么原因,如何解决
官网显示二面通过了到现在都没有HR面,表示很无语
查看7道真题和解析