编辑下面的代码:【加编码】
<html> <body> <script> var i; var cars = new Array(); cars[0] = "Saab"; cars[1] = "Volvo"; cars[2] = "BMW"; for (i=0;i<cars.length;i++) { document.write(cars[i] + "<br>"); } </script> </body> </html>
结果: 【此窗口】 帮助?
Try it Yourself - © 自强学堂