- 办法中的
this
,指向调用办法的对象
- 办法中的
- 全局环境下指向全局对象
- 全局函数中的
this
,指向全局对象
- 全局函数中的
- 外部函数中的
this
,指向全局对象
- 外部函数中的
- 事件中的
this
,指向触发事件的DOM对象
- 事件中的
- 构造函数中的
this
,指向new
创立的对象
- 构造函数中的
- 箭头函数中的
this
,指向定义函数上下文地址的this
- 箭头函数中的
this
,指向调用办法的对象this
,指向全局对象this
,指向全局对象this
,指向触发事件的 DOM对象
this
,指向 new
创立的对象this
,指向定义函数上下文地址的 this