可以分为6种情况来描述this指向 1. 普通函数直接调用中的this function fun() { console.log(this); // window function fn() { console.log(this); // window } fn(); } fun(); 如上代码函数里面直接调用会指向 window,需要注意的是在严格模式下this会指向 undefined 2. 在对象里调用的this let obj = { name: '温情', fn() { console.