<!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=gb2312" />
<title>js 获取
数组长度</title>
</head>
<body>
<script>
var array = new array(1,2,3,2,4,55,2);
alert(array.length);//输出7
</script>
</body>
</html>