> VB语言在线手册 > If...then..else 语句
<!DOCTYPE HTML>
<html>
<body>

<script type="text/vbscript">
i=hour(time)
If i < 10 Then
 document.write("Good morning!")
Else
 document.write("Have a nice day!")
End If
</script>

</body>
</html>			
上一篇:
下一篇: