编辑下面的代码:【加编码】
<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>
结果: 【此窗口】 帮助?
Try it Yourself - © 自强学堂