JS中的this指向问题() 在全局作用域中 =>this -> window <script> console.log(this); //this->window </script> 在普通函数中 =>this取决于谁调用,谁调用我,this就指向谁,跟如何定义无关 var obj = { fn1:function() { console.log(this); }, fn2:function(){ fn3() } } function fn3() { console.log(this); } fn3();//this->window obj.fn1();//this->obj obj.fn2