Jas*_*n94 6 javascript jquery tablesorter
我刚刚下载了tablesorter并启动并运行了.
每次用户对表进行排序时我都需要运行一些代码,而且我无法在文档中找到任何内容:-(
所以,如果有人知道这将是伟大的,谢谢!
每次对列进行排序时是否会触发事件?我需要成为排序完成后的事件
Tim*_*Tim 16
您可以将'sortEnd'绑定到tablesorter,请参阅文档:
http://tablesorter.com/docs/example-triggers.html
来自tablesorter文档:
$(document).ready(function() {
// call the tablesorter plugin, the magic happens in the markup
$("table").tablesorter();
//assign the sortStart event
$("table").bind("sortStart",function() {
//do your magic here
}).bind("sortEnd",function() {
//when done finishing do other magic things
});
});
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
5132 次 |
| 最近记录: |