<html>
<head>
</head>
<script type="text/javascript">
//数组
var stuName1 = new Array();
stuName1[1] = "小强1";
stuName1[2] = "小强2";
//alert(stuName.length);
//声明并穷举数组
var stuName2 = new Array("小强3","小强4");
//alert(stuName2.length);
var stuName3 = ["小强5","小强6"];
//alert(stuName3.length);
</script>
<body>
</body>
</html>
</html>