哪里不对了 晕了
<!DOCTYPE HTML>
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>系好安全带,准备启航</title>
<script type="text/javascript">
var today=new Date();
document.write(today.getFullYear()+"年"+today.getMonth()+"月"+today.getDate()+"日"+"星期"+today.getDay()+"<br />");
var scoreStr = "小明:87;小花:81;小红:97;小天:76;小张:74;小小:94;小西:90;小伍:76;小迪:64;小曼:76";
var suzu = scoreStr.split(";");
var sum = 0;
var avg = 0;
if(var i = 0 ; i < suzu.length ; i++){
sum = sum+ parseInt(suzu[i].slice(3,5));
}
avg = sum / suzu.length;
document.write(parseInt(avg));
</script>
</head>
<body>
</body>
</html>