中文字幕一区二区人妻电影,亚洲av无码一区二区乱子伦as ,亚洲精品无码永久在线观看,亚洲成aⅴ人片久青草影院按摩,亚洲黑人巨大videos

tr sectionRowIndex 屬性

tr 對(duì)象參考手冊(cè) tr 對(duì)象

定義和用法

TsectionRowIndex 屬性返回某一行在TBODY,THEAD,或TFOOT rows 集合中的位置

語(yǔ)法

返回 sectionRowIndex 屬性:

trObject.sectionRowIndex

提示: sectionRowIndex 屬性沒(méi)有默認(rèn)值。


瀏覽器支持

Internet ExplorerFirefoxOperaGoogle ChromeSafari

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


實(shí)例

實(shí)例

彈出THEAD,TBODY,tFoot Rows集合的行的位置:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>小白教程(json.cn)</title>
<script>
function displayResult(x){
????alert("Section row index is: " + x.sectionRowIndex);
}
</script>
</head>
<body>

<table border="1">
????<thead>
????????<tr onclick="displayResult(this)">
????????????<th>單擊顯示行下標(biāo)</th>
????????</tr>
????????<tr onclick="displayResult(this)">
????????<th>單擊顯示行下標(biāo)</th>
????????</tr>
</thead>
<tbody>
????????<tr onclick="displayResult(this)">
????????<td>單擊顯示行下標(biāo)</td>
????????</tr>
????????<tr onclick="displayResult(this)">
????????<td>單擊顯示行下標(biāo)</td>
????????</tr>
</tbody>
<tfoot>
????????<tr onclick="displayResult(this)">
????????<td>單擊顯示行下標(biāo)</td>
????????</tr>
????????<tr onclick="displayResult(this)">
????????<td>單擊顯示行下標(biāo)</td>
????????</tr>
</tfoot>
</table>

</body>
</html>

運(yùn)行代碼 ?

tr 對(duì)象參考手冊(cè) tr 對(duì)象其他擴(kuò)展