JavaScript
JavaScript for 循环
您可以在语句 1 中初始化任意(或者多个)
源代码:
点击运行 »
<script> cars = ["BMW", "Volvo", "Saab", "Ford"]; for (var i = 0, l = cars.length; i < l; i++) { document.write(cars[i] + "<br>"); } </script>
运行结果:
点击运行 »