源代码 :
点击运行
<!DOCTYPE html> <html> <body> <script type="text/vbscript"> Dim cars(2) cars(0)="Volvo" cars(1)="Saab" cars(2)="BMW" For Each x In cars document.write(x & "<br>") Next </script> </body> </html>
运行结果