为啥第一个行第二个不行
1:
var chengji=scoreStr.split(";")
var fen=0;
for(var i=0;i<mylen;i++){
var fen=parseInt(chengji[i].substr(chengji[i].indexOf(":")+1))+fen;
}document.write(fen)
---------------------------------------------
2:
var chengji=scoreStr.split(";")
var fen=0;
for(var i=0;i<mylen;i++){
var fen=parseInt(chengji[i].split(":")[1])+fen;
}document.write(fen)