this:调用方式决定绑定 | JavaScript
本章覆盖:普通函数 this 不是词法变量;方法调用 this;独立函数调用与 strict mode;显式绑定;constructor 调用;DOM/框架回调中 this 需要结合宿主调用方式判断。
本章知识点
- 普通函数 this 不是词法变量
- 方法调用 this
- 独立函数调用与 strict mode
- 显式绑定
- constructor 调用
- DOM/框架回调中 this 需要结合宿主调用方式判断
本章覆盖:普通函数 this 不是词法变量;方法调用 this;独立函数调用与 strict mode;显式绑定;constructor 调用;DOM/框架回调中 this 需要结合宿主调用方式判断。