简单教程
提交运行
代码编辑器:
<script> cars=["BMW","Volvo","Saab","Ford"]; for (var i=0;i<cars.length;i++){ document.write(cars[i] + "<br>"); } </script>
运行结果: