亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

HTML DOM rows 集合

定義和用法

rows 集合返回表格中所有行(TableRow 對(duì)象)的一個(gè)數(shù)組,即一個(gè) HTMLCollection。

該集合包括 <thead>、<tfoot> 和 <tbody> 中定義的所有行。

語(yǔ)法

tableObject.rows[]

實(shí)例

下面的例子使用了 rows 集合來(lái)顯示第一行中的內(nèi)容:

<html>
<head>
<script type="text/javascript">
function showRow()
  {
  alert(document.getElementById('myTable').rows[0].innerHTML)
  }
</script>
</head>
<body>

<table id="myTable" border="1">
<tr>
<td>Row1 cell1</td>
<td>Row1 cell2</td>
</tr>
<tr>
<td>Row2 cell1</td>
<td>Row2 cell2</td>
</tr>
</table>
<br />
<input type="button" onclick="showRow()" value="Show innerHTML">

</body>
</html>