function fn1() {
this //this => window
}
fn1(); //this => window
oDiv.onclick=fn1; //this => oDiv
oDiv.onclick=function() {
this //this => oDiv
fn1(); //this => window
}
<div onclick="this"></div> //this => div
<div onclick="fn1();"></div> //this => window
原文:http://www.cnblogs.com/YYvam1288/p/4869297.html