为什么不能运行,求大神指点
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>background-origin</title>
<script type="text/javascript">
var date=new Date();
var a =date.getDay();
var t=["星期天","星期一","星期二","星期三","星期四","星期五","星期六", ]
document.write(date.getFullYear()+"/"+date.getMonth()+"/"+date.getDate()+" "+t[a]);
var scoreStr = "小明:87;小花:81;小红:97;小天:76;小张:74;小小:94;小西:90;小伍:76;小迪:64;小曼:76";
var Str=scoreStr.spilt(";");
var sum=0;
for(var i=0;i<10;i++){
sum+=parseInt(Str[i].subStr(3,5));
}
document.write(sum);
</style>
</head>
<body>
</div>
</body>
</html>