> VB语言在线手册 > For..each 循环
<!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>