GC極3165854
2016-05-09 13:18
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);
document.write(myarr.join(";"));这句代码是什么?
JavaScript进阶篇
468060 学习 · 21891 问题
相似问题