一段在原有的TABLE中插入行和列的JS脚本,在IE6、8和Chrome中正常运行,但在FF3.5中却出现下面的错误提示,而且该有的效果没出来...错误: uncaught exception: [Exception... "Not enough arguments"  nsresult: "0x80570001 (NS_ERROR_XPC_NOT_ENOUGH_ARGS)"  location: "JS frame :: http://localhost/261.html :: create_table :: line 35"  data: no]35行的代码是root.insertBefore(eTh);...
switch (i) {
  case 0 :
    var root= tab.getElementsByTagName('tr')[i];
    var eTh = document.createElement('th');
    var eTxt = document.createTextNode("总数");
    eTh.appendChild(eTxt);
    root.insertBefore(eTh);
    break;
...用try..catch...捕获异常还是提示上面那错误...