<html>
<head>
<script type="text/vbscript">
function greeting()
i=hour(time)
if i < 10 then
document/write("Good morning!")
else
document/write("Have a nice day!")
end if
end function
</script>
</head>
<body>
<script type="text/vbscript">
document.write ("Look at:" & greeting())
</script>
</body>
</html>
为什么显示出来是:Have a nice day! Look at:
不是应该是:Look at:Have a nice day! 吗?
下面这个就可以按顺序显示
<html>
<head>
<script type="text/vbscript">
function myFunction()
myFunction = "蓝色"
end function
</script>
</head>
<body>
<script type="text/vbscript">
document.write("我喜欢的颜色是:" & myFunction())
</script>
</body>
</html>
显示出来就是:我喜欢的颜色是:蓝色
并没有倒过来,不明白为什么?
慕桂英546537
慕莱坞森