sum = sum + parseInt(myss[i].slice(3)); 中总和是怎么算出来的
var scoreStr = "小明:87;小花:81;小红:97;小天:76;小张:74;小小:94;小西:90;小伍:76;小迪:64;小曼:76";
var myss=scoreStr.split(";");
for (i=0;i<myss.length;i++){
}
var sun=0;
for (i=0;i<myss.length;i++){
sun=sun + parseInt(myss[i].slice(3));
}document.write("该班成绩总和为"+sun+"该班平均分为"+parseInt(sun/myss.length));