从表中删除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');

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

相关文章

jQuery表单验证提交:前台验证一(图文+视频)
jQuery表单验证提交:前台验证二(图文+视频)
jQuery如何实时监听获取input输入框的值
JQuery怎么判断元素是否存在
jQuery如何实现定时重定向
jquery如何获取复选框选中的值