Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

我们的志愿者还没有将这篇文章翻译为 中文 (简体)加入我们帮助完成翻译!

The HTMLTableElement.rows read-only property returns a live HTMLCollection of all the rows in the table. The rows included in the associated <thead>, <tfoot> and <tbody> elements.

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

文档标签和贡献者

 此页面的贡献者: teoli, kscarfone, Sheppy, ethertank, Jesdisciple, Thing, RobG, Dria, JesseW
 最后编辑者: teoli,