let deviceList = []; let table = document.getElementById("table"); let rows = table.rows; for (var i = 1; i < rows.length; i++) { var rowArr = []; for (var j = 0; j < rows[i].cells.length; j++) { rowArr.push($(rows[i].cells[j]).text()); } deviceList.push(rowArr); }
快捷翻译 - 快到离谱! 划词翻译 自动发声 自动添加生词本 标签:jQuery,rows,表格,rowArr,let,var,table From: https://www.cnblogs.com/y5s78/p/17403803.html