HTML DOM表中所有行的
HTMLTableElement.rows 只读属性返回表中所有行的一个活的 HTMLCollection。HTMLTableElement.rows 包括与之相关的thead, tfoot 和 tbody 元素。
Although the property is read-only, the returned object is live and allows the modification of its content.
Syntax
HTMLCollectionObject = table.rows
Example
myrows = mytable.rows;
firstRow = mytable.rows[0];
lastRow = mytable.rows[mytable.rows.length - 1];
Specification
来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。
