数据表分页不起作用

时间:2014-06-02 08:38:14

标签: datatable

我已经使用数据表进行分页,一切正常,但下一个prev分页未显示第一次,在搜索框中的onkeypress事件之后它工作正常,在控制台中显示以下错误:< / p>

"TypeError: aoLocal[(i + iRowspan)][j] is undefined".  

1 个答案:

答案 0 :(得分:1)

检查表格结构。未标记的标记会导致未定义的rowspan。例如,此结构使用DataTables打破表呈现:

<table>
    <thead>
        <tr>
            <th>I am a visible header</th>
            <th>Hey! what the hell... Why am i invisible?</th>
        <tr>
    </thead>
</table>

因第二个<tr>而导致的休息应为</tr>

相关问题