[快速搜索]如何确定显示的行数? [英] [quicksearch] How to determine number of displayed rows?
本文介绍了[快速搜索]如何确定显示的行数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在将jQuery与TableSorter和QuickSearch插件一起使用.这些工作正常.
I'm using jQuery with TableSorter and QuickSearch plugins. These work fine.
我该怎么办
-
动态显示每个显示行的行号吗?
dynamically display row numbers for each displayed row?
在页面的某处显示显示的总行数吗?
somewhere on my page, display the total number of displayed rows?
推荐答案
$('tr:visible').length
请提供页面上可见行的数量.
Will you give the number of visible rows on the page.
类似的东西:
var rowCount = $('tr:visible').length;
$('#rowCountDiv').html(rowCount + "rows");
将数字写到您页面上ID为rowCountDiv
Will write out the number into a div on your page with an id of rowCountDiv
这篇关于[快速搜索]如何确定显示的行数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文