<table ,str);
 }
 
}
function delFile(index)
{
 if(iFileCount==1 && index>0)
  tbAccessory.deleteRow(1);
 else
  tbAccessory.deleteRow(index);
 iFileCount=iFileCount-1;
 //alert(iFileCount.toString());
}
function runRowInsert(TableHandle, GetCells, RowIndex){
 var oRow = null;
 var oCel = null;

 if (typeof(GetCells) != 'object' || GetCells.length == 0){
  alert('错误信息:\n* 没有任何数据需添加!');
 }else{
  if (typeof(RowIndex) != 'number'|| RowIndex < 0){
   oRow = TableHandle.insertRow();

  }else{
   if (RowIndex < TableHandle.length){
    oRow = TableHandle.insertRow(RowIndex);
   }else{
    oRow = TableHandle.insertRow();
   }
  }
  for (var i = 0; i < GetCells.length; i++){
   oCel = oRow.insertCell();
   oCel.innerHTML = GetCells[i];
  }
 }
 return oRow;

}
  </script>

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-08-08
  • 2021-06-05
  • 2022-01-15
  • 2021-10-28
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-30
  • 2022-12-23
  • 2022-01-19
  • 2022-12-23
相关资源
相似解决方案