Jquery 表排序器未排序

Jquery 表排序器未排序,jquery,tablesorter,Jquery,Tablesorter,很抱歉提出这个愚蠢的问题,但我已经挣扎了几个小时没有成功。 我的样本表未排序。这两个.js文件与.shtml文件本身位于同一目录中 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang

很抱歉提出这个愚蠢的问题,但我已经挣扎了几个小时没有成功。 我的样本表未排序。这两个.js文件与.shtml文件本身位于同一目录中

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us">
<head>
<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" class="tablesorter">
   <thead>
     <tr>
     <th>Test1</th>
     <th>Test2</th>
    </tr>
   </thead>
   <tbody>
    <tr>
     <td>1</td>
     <td>1622</td>
    </tr>
    <tr>
     <td>2</td>
     <td>2634</td>
    </tr>
   </tbody>
</table>
</body>
</html>

也许你有jquery和tablesorter的坏拷贝?使用jquery和tablesorter的实际版本并从它们各自的站点链接,它似乎可以很好地工作


也许你有jquery和tablesorter的坏拷贝?使用jquery和tablesorter的实际版本并从它们各自的站点链接,它似乎可以很好地工作


谢谢恐怕这一定是一个一般的配置问题。你提供的资料也不起作用……是的,那就不确定了。这对我在Chrome和IE8上都有效,但我必须允许IE8中的脚本。请确保使用tablesorter。它修复了原始版本的各种问题,这些版本已经好几年没有更新了。谢谢。恐怕这一定是一个一般的配置问题。你提供的资料也不起作用……是的,那就不确定了。这对我在Chrome和IE8上都有效,但我必须允许IE8中的脚本。请确保使用tablesorter。它修复了原始版本的各种问题,而原始版本已经好几年没有更新了。
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us">
<head>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script type="text/javascript" src="http://mottie.github.com/tablesorter/js/jquery.tablesorter.js"></script>
<script type="text/javascript">
$(document).ready(function() 
    { 
        $("#myTable").tablesorter(); 
    } 
); 
</script>
</head>
<body>
<table id="myTable" class="tablesorter">
   <thead>
     <tr>
     <th>Test1</th>
     <th>Test2</th>
    </tr>
   </thead>
   <tbody>
    <tr>
     <td>1</td>
     <td>1622</td>
    </tr>
    <tr>
     <td>2</td>
     <td>2634</td>
    </tr>
   </tbody>
</table>
</body>