【发布时间】:2016-11-16 11:24:10
【问题描述】:
您好有如下数据表的 java 脚本,如何定义它以便只对起始值进行搜索,例如:[hello, hello_all, all_hello] 在那里,我的搜索关键字是“hel”我应该获取 [hello,hello_all] 的过滤器。
$('#example').DataTable( {
data: new_data,
dom: '<"top"fB>rt<"bottom"ipl>',
buttons:['csv'],
search :{"bSmart": false,
"regex":true},
columns: [
{ title: "Action" },
{ title: "Input" },
{ title: "State" },
{ title: "Completed" },
{ title: "Project" },
],
"order": [[ 3, "desc" ]]
});
【问题讨论】:
标签: javascript jquery regex datatables