怎么没有输出,求教各位大神
var arr=new Array("星期日","星期一","星期二","星期三","星期四","星期五","星期六")
var mydate=new Date();
document.write(mydate.getFullYear()+"年"+mydate.getMonth()+"月"+arr(mydate.getDay())+"<br/>");
var sorce = "小明:87;小花:81;小红:97;小天:76;小张:74;小小:94;小西:90;小伍:76;小迪:64;小曼:76";
var Arr = sorce.split(";");
var i=0;
var sum=0;
var x=Arr.length;
for(i=0;i<x;i++)
{var sum+=parseInt(Arr.substring(Arr[i].indexOf(":")+1))}
document.write(sum/x);