这是我的数据表的html代码:
<table id="table" width="100%">
<thead>
<tr>
<th id="header0">number</th>
<th id="header1">name</th>
<th id="header2">project</th>
<th id="header3">date</th>
<th id="header4">status</th>
<th id="header5">total</th>
</tr>
<tfoot >
<tr>
<th colspan="5" style="text-align:right">total:</th>
<th></th>
</tr>
</tfoot>
</thead>
</table>
我为此表设置了colReorder
为true。只要我删除表的页脚,列排序似乎工作正常。但是当我有页脚并尝试拖放列时,只有列标题正在移动,数据保持不变并导致控制台出现以下错误:Uncaught TypeError: Failed to execute 'insertBefore' on 'Node': parameter 1 is not of type 'Node'.
还有其他吗?解决此问题的方法或至少一种不使用footer
来显示总数的方法?
答案 0 :(得分:1)
显然,the issue involves the colspan in the footer。这个讨论可以追溯到2013年,所以我不认为有这样的解决方案,除了试图显示没有colspan的总数(可能重复页脚中的标题并将invisiblity: hidden
应用于不相关的的吗?)。