随笔分类 - 探究系列
前端系列随笔
摘要:1.变量声明 提升: console.log(typeof a); // undefined var a = 1; console.log(typeof a); // number 执行过程 相当于: var a; console.log(typeof a); // undefined a = 1;
阅读全文
摘要:1.全局上下文中 this 2.函数上下文的 this 3.对象属性中的 this 4.构造函数 和 原型方法中的 this 5.应用 call、apply、bind 方法后的 this 原创:转载注明出处,谢谢 :)
阅读全文
摘要:1.全局上下文中的 this this 指向 2.函数上下文的 this 严格模式: this 指向 非严格模式: this 指向 复杂测试: this 指向 3.对象属性中的 this this 指向...
阅读全文