1.全局作用域下面的this执行的是window //1.全局作用域下面的this=>window //onsole .1og(this); 2.谁调动这个函数, this就指向谁 //2.谁调动这个函数,this就指向谁 function fn(){ console .log(this); } fn(); var btn = document,getElementById( "btn") btn.onclick = function(){ console .1og(this); }