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