CVTE一面(9.16 1h5min)、二面挂
时间有点久,有些问题忘记了,大致记一下
1.寒暄了一下
2.介绍实习时候的项目,倒计时组件usecountdown内部原理,图片懒加载(项目说了挺久的,但忘了都说了些啥)
3.三道输出题,只记得两道了
// 先说输出结果,然后说一下为什么 name(); var name = function() { console.log('1'); }; function name() { console.log('2'); }; name(); // 说输出结果,如何改变this指向 let animal = { name: 'hello', type: 'kitty', setPname: function() { setTimeout(function() { let pname = this.name + ' ' + this.type; console.log(pname); }, 100) } } animal.setPname();4.xss攻击和csrf攻击,怎么防范csrf攻击
5.讲一讲浏览器缓存,token怎么使用,localstorage项目里面会用在哪里
6.http缓存,强缓存和协商缓存,cache control里面的no cache和nostore是什么意思
7.箭头函数与普通函数区别
8.call、apply、bind
9.宏任务有哪些,微任务有哪些,事件循环
10.重排与重绘
11.怎么减少重排,怎么减少操作dom
12.算法题:将数组相同的元素进行分类
反问:1.技术栈,react;2.技术面有几面
二面感觉是在刷kpi,面试官都不怎么听我说话,一直在做自己的事情。
#CVTE#