Jquery 对于具有多个tbody'的表格,禁用对特定tbody应用表格分类器;s

Jquery 对于具有多个tbody'的表格,禁用对特定tbody应用表格分类器;s,jquery,tablesorter,Jquery,Tablesorter,我在同一张桌子里有两个不同的人。我只想在第一个车身上安装桌面分拣机。有没有一种方法可以跳过对第二个tbody单独使用tablesorter <table> <tbody id="1"></tbody> /* Apply table sorter for this tbody */ <tbody id="2"></tbody> /* Don't Apply table sorter for this tbody*/ </tabl

我在同一张桌子里有两个不同的人。我只想在第一个车身上安装桌面分拣机。有没有一种方法可以跳过对第二个tbody单独使用tablesorter

<table>
<tbody id="1"></tbody>  /* Apply table sorter for this tbody */
<tbody id="2"></tbody>  /* Don't Apply table sorter for this tbody*/
</table>

/*为该tbody应用桌面分拣机*/
/*不要将桌面分拣机应用于此tbody*/

我猜您正在使用my,它确实支持。原始插件只对第一个tbody进行排序

如果希望tablesorter忽略任何tbody,只需将类名
tablesorter infoOnly
添加到tbody即可。此类名由设置


需要注意的是,tablesorter不会处理上面共享的HTML,除非该表包含一个
thead

只需将第二个tbody作为另一个表,并使用CSS使它们看起来像一个表

<table>/* Apply table sorter for this table */
<tbody id="1"></tbody>  
</table>

<table>/* Don't Apply table sorter for this table*/
<tbody id="2"></tbody>  
</table>
/*为此表格应用表格分拣机*/
/*不要将表格分拣机应用于此表格*/