📜  循环槽表行 - 无论代码示例

📅  最后修改于: 2022-03-11 14:58:27.803000             🧑  作者: Mango

代码示例1
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
           }
        }
    }