未分类

  1. 介绍事件循环机制
  2. 题目:
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
  1. 题目:
if ([] == false) {console.log(1);};
 if ({} == false ) {console.log(2);};
 if ([]) {console.log(3);};
 if ([1] == [1]) {console.log(4);};
1
2
3
4
  1. this的指向问题
  2. 题目:
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
  1. script标签defer和async
  2. for in,Object.keys, Object.getOwnPropertyNames
  3. 对象的enumerable, configurable
  4. 函数防抖(debounce) & 函数节流(throttle) 并实现
  5. 什么是跨域?怎么解决跨域问题?
  6. 栈和队列
  7. 题目:判断压栈顺序是否合法
  8. 数字千位符的实现(考正则)
  9. css盒模型
  10. 三角符号用css实现
  11. 有没有了解React的diff算法
  12. D3 与 Echarts 的区别
  13. 平时除了项目开发,有接触其他的技术吗
  14. Rxjs 的运用场景以及有在项目中用过吗
Last Updated: 2019-9-4 15:27:58