字节跳动两次凉经
提前批:
- 谈谈闭包及应用
- 输入框要求每次输入都要有联想功能,即随时向后台请求数据,但是频繁输入时,如何防止频繁多次请求
- js闭包及应用
- 防抖
- hash /a#/b; history /a/b。vue如何检测前端路由变化(vue中方法
- vue中 this.$nextTick()原理
- vue中父子组件双向通信
- css:左侧固定,右侧自适应,利用flex。Flex布局
- 编程实现:
a: {
b: {
c: 1
}
}
getValue(obj, 'a.b')
getValue(obj, 'a.b.c')
getValue(obj, 'a.e.f') 秋招
- angular双向数据绑定原理
- em rem区别,rem缺点
- 前端优化 项目中如何优化
- CDN
- webpack 打包原理
- 浏览器缓存
- 编程:手动实现双向数据绑定
- 编程:两栏布局,一栏固定,一栏自适应
- 编程:两个已排好序的数组,组合重排序
- 编程:已知add是异步,如何运行getValue使其得到正确结果。
function add(a, b) {
return a+b;
}
function getValue() {
return add(a, b)
} 11.得出结果 (记不太清楚了) function Foo() {
getValue = function() {
console.log(1)
}
return this;
}
Foo.getValue = function() {
console.log(2)
}
Foo.prototype.getValue = function() {
console.log(3)
}
function getValue() {
console.log(4)
}
getValue = function() {
console.log(5)
}
Foo.getValue();
Foo().getValue();
getValue(); 总结:字节真的很注重代码能力
查看9道真题和解析
文远知行公司福利 509人发布