【问题标题】:Refresh datatables plugin content after modifying a cell with jQuery使用 jQuery 修改单元格后刷新数据表插件内容
【发布时间】:2013-02-04 16:04:17
【问题描述】:

我正在使用Datatables jQuery plugin. 当我用 jQuery 修改一个单元格时,可以说是这样的:

$(this).html('Error!');

然后数据表似乎没有更新,因为过滤功能不适用于具有修改单元格的那一行。

有没有办法让数据表知道这种变化,以便能够继续使用过滤? 谢谢。

【问题讨论】:

    标签: jquery jquery-plugins datatables


    【解决方案1】:

    您应该使用fnUpdate 方法更新数据表。这里是example of usage from docs

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-12-10
      • 2022-12-07
      • 1970-01-01
      • 2012-03-13
      • 2012-02-23
      • 2016-12-16
      • 2016-10-27
      • 1970-01-01
      相关资源
      最近更新 更多