jquery 插件 tablesort 
    <script type="text/javascript" src="tablesort/jquery-1.4.2.min.js"></script>
    <script type="text/javascript" src="tablesort/jquery-latest.js"></script>
    <script type="text/javascript" src="tablesort/jquery.tablesorter.js"></script>
     <script type="text/javascript">
          $(document).ready(function(){
           $("#myTable").tablesorter();
           });
    </script><table id="myTable" border="1">
    <thead><tr>
    <th>String</th>
    <th>Number</th>
    </tr></thead>
    
    <tbody>
    <tr>
    <td>ab</td>
    <td>23</td>
    </tr>
    <tr>
    <td>bd</td>
    <td>33</td>
    </tr>
    .
    . 
    .
    </tbody>
    </table>
这不能排序,请问是什么问题?

解决方案 »

  1.   

    如果遇到更新数据排序的问题
    请看我的博客http://blog.csdn.net/ymdcr/archive/2010/07/12/5728379.aspx
      

  2.   

    你的排序一切正常,
    没有一点问题。
    我复制你的代码试过的
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
     <head>
      <title> New Document </title>
      <meta name="Generator" content="EditPlus">
      <meta name="Author" content="">
      <meta name="Keywords" content="">
      <meta name="Description" content="">
         <script type="text/javascript" src="jquery-1.3.2.js"></script>
      <script type="text/javascript" src="jquery-latest.js"></script>
      <script type="text/javascript" src="jquery.tablesorter.js"></script>
      <script type="text/javascript">
      $(document).ready(function(){
      $("#myTable").tablesorter();
      });
      </script>
     </head>
     <body>
    <table id="myTable" border="1">
      <thead><tr>
      <th>String</th>
      <th>Number</th>
      </tr></thead>
        
      <tbody>
      <tr>
      <td>ab</td>
      <td>23</td>
      </tr>
      <tr>
      <td>bd</td>
      <td>33</td>
      </tr>  </tbody>
      </table> </body>
    </html>
      

  3.   

    可能你里面有小错误你没发现
    你就复制这点代码试试就行了
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
     <head>
      <title> New Document </title>
      <meta name="Generator" content="EditPlus">
      <meta name="Author" content="">
      <meta name="Keywords" content="">
      <meta name="Description" content="">
         <script type="text/javascript" src="jquery-1.3.2.js"></script>
      <script type="text/javascript" src="jquery-latest.js"></script>
      <script type="text/javascript" src="jquery.tablesorter.js"></script>
      <script type="text/javascript">
      $(document).ready(function(){
      $("#myTable").tablesorter();
      });
      </script>
     </head>
     <body>
    <table id="myTable" border="1">
      <thead><tr>
      <th>String</th>
      <th>Number</th>
      </tr></thead>
        
      <tbody>
      <tr>
      <td>ab</td>
      <td>23</td>
      </tr>
      <tr>
      <td>bd</td>
      <td>33</td>
      </tr>  </tbody>
      </table> </body>
    </html>