【问题标题】:search disappears when adding new column to datatables向数据表添加新列时搜索消失
【发布时间】:2013-10-29 15:07:18
【问题描述】:

为什么在数据表的 HTML 中添加新列时搜索框会消失?我正在尝试将某些内容转换为 jquery 和数据表,但无法弄清楚如何在下载程序时获得的预先存在的设置中的数据之外添加新数据。该网站对如何添加新列不是很清楚...

http://datatables.net/examples/api/multi_filter.html

<div id="demo">
   <table cellpadding="0" cellspacing="0" border="0" class="display" id="example">
<thead>
    <tr>
        <th>Rendering engine</th>
        <th>Browser</th>
        <th>Platform(s)</th>
        <th>Engine version</th>
        <th>CSS grade</th>
        <th>new column</th>
    </tr>
</thead>
<tbody>

【问题讨论】:

    标签: javascript jquery html search datatables


    【解决方案1】:

    是否可以加载包含所有列的整个表并隐藏某些列?这将是最有效的。

    【讨论】:

    • 我还没到那个时候。我只是想添加一个微不足道的专栏。即使我在行中添加新数据,它也会消失。我认为这与 datatables.js 有关。为了澄清,我可以很好地编辑现有数据,添加新数据很痛苦。
    • 就在这里:jsfiddle.net/JJF3/LwhUm 我只是尝试让演示在本地运行。
    猜你喜欢
    • 2010-10-01
    • 2017-07-21
    • 2021-01-23
    • 1970-01-01
    • 2018-05-17
    • 2015-07-19
    • 2012-12-29
    • 2017-09-17
    • 2018-10-09
    相关资源
    最近更新 更多