Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/68.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用多个参数对表格进行排序<;t车身>;在jquery表分类器2.0中_Jquery_Sorting_Tablesorter - Fatal编程技术网

使用多个参数对表格进行排序<;t车身>;在jquery表分类器2.0中

使用多个参数对表格进行排序<;t车身>;在jquery表分类器2.0中,jquery,sorting,tablesorter,Jquery,Sorting,Tablesorter,我有一张桌子 <table id="myTable"> <thead> <th>id</th> <th>name</th> </thead> <tbody> <tr> <td>1</td> <td>Sam</td> </tr> </tbody>

我有一张桌子

<table id="myTable">
  <thead>
    <th>id</th>
    <th>name</th>
  </thead>
  <tbody>
    <tr>
      <td>1</td>
      <td>Sam</td>
    </tr>
  </tbody>
  <tbody>
    <tr>
      <td>2</td>
      <td>Alex</td>
    </tr>
  </tbody>
</table>

身份证件
名称
1.
山姆
2.
亚历克斯
如果使用
$(“#myTbale”).tablesorter(),如何使用tableSorter2.0对其进行排序
它只对单个tbody进行排序。

我有一个将对每个tbody分别进行排序的工具。如果您有一个不想排序的tbody,则在-default is
tablesorter infoOnly
中添加包含的类名

<tbody class="tablesorter-infoOnly">
  <tr>
    <th>The contents of this tbody</th>
  </tr>
  <tr>
    <td>will not be sorted</td>
  </tr>
</tbody>

这本书的内容
将不会被排序

请在每个tbodies中发布一个我想对tbodies而不是tr进行排序的帖子。我想在每个主体内使用td对主体进行排序。就像上面的例子一样,我想使用name。对tbody进行排序。啊,好吧,我有过,但由于时间限制,我从来没有抽出时间来实施它;很抱歉我链接的拉取请求未按预期工作。