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

td/th cellIndex 屬性

td/th 對象參考手冊 td/th 對象

定義和用法

cellIndex 屬性可返回一行的單元格集合中單元格的位置。

語法

返回 cellIndex 屬性:

tdObject.cellIndex

或者

thObject.cellIndex

提示: cellIndex 屬性沒有默認(rèn)值。


瀏覽器支持

Internet ExplorerFirefoxOperaGoogle ChromeSafari

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


實(shí)例

實(shí)例

彈出單元格的位置(cellIndex):

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

<table border="1">
????<tr>
????????<td onclick="displayResult(this)">單擊顯示單元格下標(biāo)</td>
????????<td onclick="displayResult(this)">單擊顯示單元格下標(biāo)</td>
????</tr>
</table>

</body>
</html>

運(yùn)行代碼 ?

td/th 對象參考手冊 td/th 對象其他擴(kuò)展