js读取table内容var tb=document.getElementById("table1"); var rows= tb.rows; for(var i=0;i<rows.length;i++){ var cells=rows[i+1].cells; for(var j=0;j<cells.length;j++){ console.log(cells[j].innerText) } }