document.aa.rows[0].cells[0].innerText

解决方案 »

  1.   

    alert()要放到最后。
    <html>
    <head>
    <title>test</title>
    </head><body>
    <form name="m">
     <table id="aa">
      <tr >
      <td >
       abc
      </td>
      </tr>  
     </table>
     </form>
     <script>
    alert(document.all("aa").rows[0].cells[0].innerText);
    </script>
    </body>
    </html>
      

  2.   

    <html>
    <head>
    <title>test</title>
    </head>
    <body>
    <form name="m">
     <table name="aa">
      <tr>
      <td id=td1>
       abc
      </td>
      </tr>  
     </table>
     </form>
    </body>
    <script>
    alert("需要输出的变量="+document.all.td1.innerText);
    </script>
    </html>
      

  3.   

    net_lover错误信息: document.aa不是对象