我正在遵循 .filter() 示例
这是现场示例
实时示例似乎不起作用。
我只想在 Office 中显示行London
我错过了什么吗?或者还需要做什么?
谢谢。
我已经更新了你的小提琴:小提琴链接 .
筛选方法不筛选行。
您需要在情况下使用$.fn.dataTableExt.afnFiltering
。
@Reagan Gallant 的示例适用于 Datatables 版本>= 1.10。对于 1.10 <的数据表,请使用以下内容>
var table = $('#example').dataTable();
table.fnFilter("London", 2, true);