js数组
<DOCTYPE HTML> <html> <head><meta charset="utf-8"/> <title>shuzu</title> <script> //数组的创建 var a1=new Array(); var a2=new Array(2); var a3=new Array("张三","李四","王伟"); alert(a1+a2+a3); //简洁的创建方式 var aa1=[]; var aa2=["张珊珊","李思思","王五五"]; alert(aa1+"|"+aa2); //数组的长度 alert(aa2.length); //数组中元素的获取 alert(aa2[1]); </script> </head> </html>