首页
极刻
圈子
教程
开源
登录 / 注册
返回教程:VBScript 教程
TRY RUN / 在线示例
VBScript 教程 函数程序
VBScript 教程 函数程序
源代码
运行
<!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>
运行结果