相关疑难解决方法(0)

jquery选择器来计算可见表行的数量?

我有这个HTML:

<table>
    <tr style="display:table-row"><td>blah</td></tr>
    <tr style="display:none"><td>blah</td></tr>
    <tr style="display:none"><td>blah</td></tr>
    <tr style="display:table-row"><td>blah</td></tr>
    <tr style="display:table-row"><td>blah</td></tr>
</table>
Run Code Online (Sandbox Code Playgroud)

我需要计算该行数display:none.我怎样才能做到这一点?

jquery jquery-selectors

58
推荐指数
3
解决办法
8万
查看次数

标签 统计

jquery ×1

jquery-selectors ×1