创建数组创建数组<html><body> <script type="text/javascript">var mycars = new Array()mycars[0] = "Saab"mycars[1] = "Volvo"mycars[2] = "BMW" for (i=0;i<mycars.length;i++){document.write(mycars[i] + "<br />")}</script> </body></html>