行数取得 s2-9s.HTML |
table1 | |||
a | a | a | a |
b | b | b | b |
c | c | c | c |
d | d | d | d |
table2 | |||
hen1 | hen2 | hen3 | |
var hen1 = table1.rows.length ; table2.rows[2].cells[1].innerHTML = hen1 ; |
|||
var hen2 = (table1.rows.length) ; table2.rows[3].cells[2].innerHTML = hen2 ; |
|||
var hen = document.getElementById("table1") ; var hen3 = hen.rows.length ; table2.rows[4].cells[3].innerHTML = hen3 |