$.fn.bootstrapTable.locales[Table.defaults.locale]['formatSearch'] = function(){return "渠道名称或业务城市";};

比如这里要搜索的是渠道名称或者业务城市,前提是数据表有这些字段,那么就可以在控制器index方法下设置快速搜索的字段了
//快速搜索字段
$this->searchFields = "name,code";

本文介绍了如何在使用BootstrapTable时,针对渠道名称或业务城市字段设置控制器中的快速搜索功能,以便用户更高效地查找所需数据。
$.fn.bootstrapTable.locales[Table.defaults.locale]['formatSearch'] = function(){return "渠道名称或业务城市";};

比如这里要搜索的是渠道名称或者业务城市,前提是数据表有这些字段,那么就可以在控制器index方法下设置快速搜索的字段了
//快速搜索字段
$this->searchFields = "name,code";


被折叠的 条评论
为什么被折叠?