跟踪this
function test(){ var obj=this; this.message="hello"; this.run=function(){ alert(obj.message); setTimeout(obj.run,1000); }}new test().run();
发布时间: 2012-11-04 10:42:41 作者: rapoo
跟踪this
function test(){ var obj=this; this.message="hello"; this.run=function(){ alert(obj.message); setTimeout(obj.run,1000); }}new test().run();