这个有什么错误?输出不了
var myarr= [
["小明",87],
["小花",81],
["小红",97],
["小天",76],
["小张",74],
["小小",94],
["小西",90],
["小伍",76],
["小迪",64],
["小曼",76]];
document.write(myarr.join(";"));
var sum=0;
for(var i=0;i<myarr.length;i++){
var shu=parseInt(myarr[i][1]);
document.write(myarr[i][1]);
sum = sum + shu;
return sum;
}
document.write(sum);