跟踪thisfunction test(){var objthisthis.messagehellothis.runfunction(){alert(obj.message)se
跟踪this
function test(){ var obj=this; this.message="hello"; this.run=function(){ alert(obj.message); setTimeout(obj.run,1000); }}new test().run(); 