大佬们求解!为什么这样不会显示?
<!DOCTYPE HTML>
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>数组</title>
<script type="text/javascript">
var arr = ['*','##',"***","&&","****","##*"];
arr[7] = "**";
//创建数组
function lalala(){alert("数组长度为:"+arr.length);}
//显示数组长度
document.write((arr[0])+"<br/>");
document.write(arr[7])+"<br/>");
document.write(arr[2])+"<br/>");
document.write(arr[4])+"<br/>");
//将数组内容输出,完成达到的效果。
</script>
</head>
<body>
<button onclick="lalala()">数组长度</button>
</body>
</html>