function init()
{
vartable =document.getElementById("tab1");
varrows = table.rows.length;
alert('行数'+rows);
varcolums = table.rows[0].cells.length;
alert('列数'+colums);
}
----根据列数自动循环显示隐藏
function init()
{
vartable =document.getElementById("tab1");
varrows = table.rows.length;
alert('行数'+rows);
varcolums = table.rows[0].cells.length;
alert('列数'+colums);
}
----根据列数自动循环显示隐藏