TableRow sectionRowIndex 属性
定义和用法
sectionRowIndex
属性返回行在 <tbody>、<thead> 或 <tfoot> 的 rows ਸਮੂਹ ਸਥਿਤੀ ਵਿੱਚ
另请参阅:
HTML 参考手册:HTML <tr> ਟੈਗ
实例
例子 1
点击不同的行,输出它们的位置:
alert("Section row index is: " + x.sectionRowIndex);
例子 2
返回 thead、tbody 和 tfoot 的 rows 集合中行的位置:
var x = document.getElementsByTagName("tr"); var txt = ""; var i; for (i = 0; i < x.length; i++) { txt = txt + "The index of Row "+(i+1)+" is: "+x[i].sectionRowIndex+"<br>"; }
ਸ਼ਬਦਾਵਲੀ
ਵਾਪਸ ਦਿੱਤਾ ਗਿਆ sectionRowIndex ਅਧਿਆਏ:
tablerowObject.sectionRowIndex
ਤਕਨੀਕੀ ਵੇਰਵੇ
ਵਾਪਸ ਦਿੱਤਾ ਗਿਆ ਮੁੱਲ: | ਸੰਖਿਆ, ਜੋ ਕਿ ਟਾਬਲ ਵਿੱਚ ਟ੍ਰਾਂਸਪੋਰਟ ਹੈ rows ਸਮੂਹ ਸਥਿਤੀ ਵਿੱਚ |
---|
ਬਰਾਉਜ਼ਰ ਸਮਰਥਨ
ਚਰਮੀ | ਐਜ਼ | ਫਾਇਰਫਾਕਸ | ਸੈਫਾਰੀ | ਓਪਰਾ |
---|---|---|---|---|
ਚਰਮੀ | ਐਜ਼ | ਫਾਇਰਫਾਕਸ | ਸੈਫਾਰੀ | ਓਪਰਾ |
ਸਮਰਥਨ | ਸਮਰਥਨ | ਸਮਰਥਨ | ਸਮਰਥਨ | ਸਮਰਥਨ |