最近在自学vbscript,教程的一实例有些不解:
<html>
<head></head>
<body>
<script language="vbscript">
SetTimeOut "Clock",1000
sub Clock()
H=Hour(Now)
M=Minute(Now)
S=Second(Now)
NowTime="现在时间是" & H & "点" & M & "分" & S & "秒"
NowT.InnerHtml=NowTime
SetTimeOut "Clock",1000 ?????????
end sub
</script>
<center id="NowT"></center>
</body>
</html>
请教:第一句SetTimeOut "Clock",1000代码已经代表每隔一秒调用clock这个子程序了,相当于一秒钟刷新一次了,为何在clock子程序当中,还要添加SetTimeOut "Clock",1000这一句呢?去掉又不行.望能举例详解.