从表中删除jQuery tablesorter

我正在使用jQuery tablesorter(http://tablesorter.com).

通过$(‘#myTable’).tablesorter()应用到一个表后,如何从表中再次删除?

解决方法

没有内置函数来执行此操作,但您可以删除类名和事件绑定以停止其正常运行.请尝试以下操作:
$('table')
 .unbind('appendCache applyWidgetId applyWidgets sorton update updateCell')
 .removeClass('tablesorter')
 .find('thead th')
 .unbind('click mousedown')
 .removeClass('header headerSortDown headerSortUp');

如果您有寻呼机插件运行,上述将不起作用.

相关文章

页面搜索关键词突出 // 页面搜索关键词突出 $(function () {...
jQuery实时显示日期、时间 html: <span id=&quot...
jQuery 添加水印 <script src="../../../.....
中文:Sys.WebForms.PageRequestManagerParserErrorExceptio...
1. 用Response.Write方法 代码如下: Response.Write(&q...
Jquery实现按钮点击遮罩加载,处理完后恢复 思路: 1.点击按...