<html> <body> <mce:script type="text/javascript"><!-- var x var mycars = new Array() mycars[0] = "宝马" mycars[1] = "奔驰" mycars[2] = "宾利" for (x in mycars) { document.write(mycars[x] + "<br />") } // --></mce:script> </body> </html> 运行结果: 宝马奔驰宾利