我的评论

情缘 2008-05-24 10:56
<script type="text/javascript">
function Hello(name){this.name = name;}

Hello.prototype.Start = function(){
setTimeout(this.GetShow(this),3000);
}
Hello.prototype.Show = function(){alert(this.name);}

Hello.prototype.GetShow = function(variable){
return function()
{
variable.Show();
}
}

var hello = new Hello("robot");
hello.Start();
hello.name = "robot1";
</script>
博主的文章很不错,我还是有点不明白,将setTimeout(this.GetShow(this),3000); 改为setTimeout(this.Show(this),3000); 结果为什么不一样,请博主指点一下.
情缘 2008-04-18 19:55
很好,顶一下!
情缘 2008-04-11 19:36
支持!
情缘 2008-03-23 17:21
情缘 2008-03-22 22:17
很好!!!
情缘 2008-03-22 22:00
看不懂,顶一下
情缘 2008-03-07 22:26
偶明白了!!!
情缘 2008-02-26 22:45
吕老师写的很不错啊!
情缘 2008-02-21 18:42
bacic->c->c++->c#...