给你的table设置好id属性把var tableObj = record_list_table;改成var tableObj =document.getElementById("table的id");试试可以不

解决方案 »

  1.   

    cncxz(虫虫) ,你的方法我试过了。一样报错。补充一下,以下是table定义:
    <table id="record_list_table" class="spreadLine" cellpadding="1" cellspacing="0" width="2240px" cols="140" datasrc="#list"  style="cursor:pointer;margin-left:10px;">
      

  2.   

    不好意思了,我自己找到答案了。
    是table定义里面的datasrc="#list"惹的祸。去掉就ok了。
      

  3.   

    看楼主代码里有datasrc,是不是用到xml数据了我前几天写了个js+xml版的邮编区号查询,实现了xml文件的异步装载 和xpath查询楼主看看有没有参考价值文章地址:http://blog.csdn.net/cncxz/archive/2005/07/22/431997.aspx源码下载:http://www.thisky.cn/down/jsxmlzip.rar