这样不可以吗?
t =  tableB.rows[i].cells[j].all.tags("table")(0)

解决方案 »

  1.   

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    </head><body>
    <table id=tableB width="300" border="1" cellpadding="5" cellspacing="0">
      <tr>
        <td width="100"><table width="100" border="1" cellpadding="5" cellspacing="0" bordercolor="#FF0000">
            <tr>
              <td>asdfsf</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
            </tr>
          </table></td>
        <td width="79">&nbsp;</td>
        <td width="83">&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
    </table>
    <script language="JavaScript">
    alert(tableB.rows[0].cells[0].all.tags("table")(0).rows[0].cells[0].innerText)</script>
    </body>
    </html>
      

  2.   

    同意 fason(阿信) 
    不过如果是固定操作的表格,直接设置ID不是更加方便
      

  3.   

    fason(阿信) 
      我是想用id的,但插入新的tableA如  id是1,2,3,4,我要在1,2间插入我要如何把2,3,4的id改为3,4,5呢
      

  4.   

    我马虎了,我少写了“(0)”
    写成了
    t =  tableB.rows[i].cells[j].all.tags("table")
    应该是
    t =  tableB.rows[i].cells[j].all.tags("table")(0)反正解决了,谢谢大家,结分