我的代码,,,,
<!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] = "**";
//显示数组长度
alert(arr.length);
for(var i=0;i<=4;i=i+2)
{
document.write(arr[i]+"<br>");
if(i==0)
{
document.write(arr[7]+"<br>");
}
}
</script>
</head>
<body>
</body>
</html>