国产chinesehdxxxx野外,国产av无码专区亚洲av琪琪,播放男人添女人下边视频,成人国产精品一区二区免费看,chinese丰满人妻videos

HTML DOM tr rowIndex 屬性

2018-08-04 20:41 更新

tr rowIndex 屬性

tr 對象參考手冊 tr 對象

定義和用法

rowIndex 屬性返回某一行(rows )在表格的行集合中的位置(row index)。

語法

返回 rowIndex 屬性:

trObject.rowIndex

提示:rowIndex 屬性沒有默認值。


瀏覽器支持

Internet ExplorerFirefoxOperaGoogle ChromeSafari

所有主流瀏覽器都支持 rowIndex 屬性


實例

實例

下面的例子返回了某一行在表格中的位置:

<html>
<head>
<script>
function displayResult(x)
{
alert("Row index is: " + x.rowIndex);
}
</script>
</head>
<body>

<table border="1">
? <tr onclick="displayResult(this)">
??? <td>Click to show rowIndex</td>
? </tr>
? <tr onclick="displayResult(this)">
??? <td>Click to show rowIndex</td>
? </tr>
? <tr onclick="displayResult(this)">
??? <td>Click to show rowIndex</td>
? </tr>
</table>

</body>
</html>

嘗試一下 ?


tr 對象參考手冊 tr 對象
以上內(nèi)容是否對您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號
微信公眾號

編程獅公眾號