JavaScript
JavaScript for 循环
我们可以这样输出数组的
源代码:
点击运行 »
<script> cars = ["BMW", "Volvo", "Saab", "Ford"]; for (var i = 0; i < cars.length; i++) { document.write(cars[i] + "<br>"); } </script>
运行结果:
点击运行 »