dom.onclick 与 <html onclick>的差别

dom.onclick与 html onclick的区别function test(){alert(this)}cc{}cc.aatest cc.bbfunction (){te

dom.onclick 与 <html onclick>的区别
function test()
{
alert(this)
}
cc={}
cc.aa=test;

cc.bb=function (){test()}
cc.aa()//this==cc
cc.bb()//this==window