首页
极刻
圈子
教程
开源
登录 / 注册
返回教程:VBScript 教程
TRY RUN / 在线示例
VBScript 教程 head部分中的函数
VBScript 教程 head部分中的函数
源代码
运行
<!DOCTYPE html> <html> <head> <script type="text/vbscript"> function myFunction() alert("Hello World!") end function </script> </head> <body onload="myFunction()"> <p>We usually use the head section for functions (to be sure that the functions are loaded before they are called).</p> </body> </html>
运行结果