attAchments为table
var tb = document.getElementById('attAchments');
var rowNum=tb.rows.length;
for (i=0;i<rowNum;i++)
{
tb.deleteRow(i);
rowNum=rowNum-1;
i=i-1;
}
var tb = document.getElementById('attAchments');
var rowNum=tb.rows.length;
for (i=0;i<rowNum;i++)
{
tb.deleteRow(i);
rowNum=rowNum-1;
i=i-1;
}