function sum(){
var sum = 0;
var table = document.getElementById("orderTable");
for(var j=2;j<14;j++){
sum=0;
for(var i=4;i<table.rows.length-1;i++){
sum += parseFloat(table.rows[i].cells[j].innerText);
}
table.rows[table.rows.length-1].cells[j-1].innerText = sum;
}
}
时间: 2024-10-01 07:19:22