关于表格清空的问题
写了如下函数
function creatIndex()
{
vIndex=document.createElement("table");
vIndex.cellPadding="0";
vIndex.cellSpacing="0";
vIndex.border="0";
vIndex.width="100%";
vTr=vIndex.insertRow(indexnum);
vTd=vTr.insertCell(0);
vTd.innerHTML="<input type='radio' name='rad'>";
vTd=vTr.insertCell(1);
vTd.width="70%";
vTd.innerHTML="test";
}
每次调用这个函数的时候表里面的行列总是存在,怎样才能清空表格?
谢谢