function test(){
var obj=this;
this.message="hello";
this.run=function(){
alert(obj.message);
setTimeout(obj.run,1000);
}
}
new test().run();
详细解决方案
追踪this
热度:197 发布时间:2012-11-04 10:42:41.0
相关解决方案