为什么我用for循环没有任何结果输出的?求解答
<!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=utf-8" />
<title>什么是数组</title>
<script type="text/javascript">
var myarr=new Array(); //定义数组
myArr[0]=80;
myArr[1]=60;
myArr[2]=99;
for(i=0;i<myarr.length;i++){
document.write("第"+(i+1)+"个人的成绩是"+myarr[i]);
}
</script>
</head>
<body>
</html>