字节提前批前端二面凉经
7.26下午三点,面试官很好,无奈我太菜
1. 自我介绍
2. 项目经历以及难点
问答环节(乱序,回忆版)
1. vue的hash与history路由区别以及实现原理
2. vue的双向绑定原理
3. vue的diff策略(就地复用)(这个其实了解,但是不知道它就是diff。。
4. vue的安全策略,xss、csrf的处理
5. 聊聊ES6
6. let const var的区别
7. new()发生了什么
8. tcp的三次握手,为什么是三次
手撕代码
1. 看代码说输出(原型链
var a= function () { this.b =3; }
var c = new a();
a.prototype.b = 9;
var b = 7;
a();
// 分别输出什么
console.log(b);
console.log(c.b); 2. 看代码说输出
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();
})
.then(function () {
console.log('promise1 then');
return 'promise1 end';
})
.then((res) => {
console.log(res);
})
.then((res) => {
console.log(res);
});
console.log('script end'); 3. 输出回形矩阵(类似力扣54题,没做过,现场框架对了就没再做了) 最后,反问环节,和面试官聊了20min,面试官是主要做react的,学到了大厂牛人的前端理解,受益良多,最后说等HR通知,感觉可能凉了,大家加油!
查看11道真题和解析
传音控股公司福利 306人发布