> VB语言在线手册 > 函数程序
<!DOCTYPE HTML>
<html>

<head>
<script type="text/vbscript">
Function myFunction()
 myFunction = "BLUE"
End Function
</script>
</head>

<body>
<script type="text/vbscript">
document.write("My favorite color is " & myFunction())
</script>
<p>A Function procedure can return a result.</p>
</body>

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