📅  最后修改于: 2022-03-11 14:58:27.803000             🧑  作者: Mango
var table = document.getElementById("hoursContainer");
//iterate trough rows
for (var i = 0, row; row = table.rows[i]; i++) {
//iterate trough columns
for (var j = 0, col; col = row.cells[j]; j++) {
// do something
}
}
}