dom.onclick 与 <html onclick>的区别
function test()
{
alert(this)
}
cc={}
cc.aa=test;
cc.bb=function (){test()}
cc.aa()//this==cc
cc.bb()//this==window
发布时间: 2012-11-08 08:48:11 作者: rapoo
dom.onclick 与 <html onclick>的区别
function test()
{
alert(this)
}
cc={}
cc.aa=test;
cc.bb=function (){test()}
cc.aa()//this==cc
cc.bb()//this==window