源代码 :
点击运行
<!DOCTYPE html> <html> <body> <script type="text/vbscript"> Sub mysub() document.write("I was written by a sub procedure") End Sub document.write("I was written by the script<br>") Call mysub() </script> </body> </html>
运行结果