未分类
- 介绍事件循环机制
- 题目:
setTimeout(function() {
console.log(’setTimeout‘);
})
new Promise(function(resolve) {
console.log(’promise‘);
for (let i = 0; i < 10000; i++) {
if(i === 10) {
console.log(’for‘);
}
i == 9999 && resolve(’resolve‘);
}
}).then(function(val) {
console.log(val);
})
console.log(’console‘);
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
- 题目:
if ([] == false) {console.log(1);};
if ({} == false ) {console.log(2);};
if ([]) {console.log(3);};
if ([1] == [1]) {console.log(4);};
1
2
3
4
2
3
4
- this的指向问题
- 题目:
var o = {}
o.foo = function foo(){
console.log(this);
return () => {
console.log(this);
return () => console.log(this);
}
}
o.foo()()()
1
2
3
4
5
6
7
8
9
10
2
3
4
5
6
7
8
9
10
- script标签defer和async
- for in,Object.keys, Object.getOwnPropertyNames
- 对象的enumerable, configurable
- 函数防抖(debounce) & 函数节流(throttle) 并实现
- 什么是跨域?怎么解决跨域问题?
- 栈和队列
- 题目:判断压栈顺序是否合法
- 数字千位符的实现(考正则)
- css盒模型
- 三角符号用css实现
- 有没有了解React的diff算法
- D3 与 Echarts 的区别
- 平时除了项目开发,有接触其他的技术吗
- Rxjs 的运用场景以及有在项目中用过吗
← 未分类 debug生产环境的方法? →