创建数组
- <html>
- <body>
- <script type="text/vbscript">
- dim fname(5)
- fname(0) = "George"
- fname(1) = "John"
- fname(2) = "Thomas"
- fname(3) = "James"
- fname(4) = "Adrew"
- fname(5) = "Martin"
- for i=0 to 5
- document.write(fname(i) & "<br />")
- next
- </script>
- </body>
- </html>