HTMLTableElement.rows
åºçº¿
广æ³å¯ç¨
èª 2015å¹´7æ èµ·ï¼æ¤ç¹æ§å·²å¨ä¸»æµæµè§å¨ä¸å¾å°æ¯æï¼å¯å¨å¤§å¤æ°è®¾å¤åæµè§å¨çæ¬ä¸æ£å¸¸ä½¿ç¨ã
è¡¨ä¸ææè¡ç
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
js
myrows = mytable.rows;
firstRow = mytable.rows[0];
lastRow = mytable.rows[mytable.rows.length - 1];