Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/64.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Tablesorter jquery显示表上方html表中的行总数_Jquery_Tablesorter - Fatal编程技术网

Tablesorter jquery显示表上方html表中的行总数

Tablesorter jquery显示表上方html表中的行总数,jquery,tablesorter,Jquery,Tablesorter,我正在使用Tablesorter和Tablesorter的一个mod 我有一个很简单的问题。在mod功能中,如何显示表上方的总可见行数?我知道它需要一个文本框来显示结果,但我如何获得该值?它应该显示“检索到的行总数:100”之类的内容。您只需添加标题行: <tr> <th colspan="6" class="total"> Total Rows: <span>0</span> </th> </

我正在使用Tablesorter和Tablesorter的一个mod


  • 我有一个很简单的问题。在mod功能中,如何显示表上方的总可见行数?我知道它需要一个文本框来显示结果,但我如何获得该值?它应该显示“检索到的行总数:100”之类的内容。

    您只需添加标题行:

    <tr>
        <th colspan="6" class="total">
            Total Rows: <span>0</span>
        </th>
    </tr>
    

    只需添加标题行即可:

    <tr>
        <th colspan="6" class="total">
            Total Rows: <span>0</span>
        </th>
    </tr>
    

    使用了福吉的逻辑,但希望我的总行在表外,所以修改如下

    Total Rows: <span class="total"> 0  </span>
    <table cellspacing="1" class="tablesorter"> 
    ....  </table>
    

    使用了福吉的逻辑,但希望我的总行在表外,所以修改如下

    Total Rows: <span class="total"> 0  </span>
    <table cellspacing="1" class="tablesorter"> 
    ....  </table>
    

    简单明了的谢谢。。。。此外,我还使用了另一个,但会将你的答案标记为我的灵感。简单明了的谢谢。。。。此外,我使用了另一个,但将标记你的答案作为我的灵感。