下载地址:http://note.youdao.com/yws/public/redirect/share?id=a470bb9ede4466626edfea2946eb3553&type=false
在 bootStrap table .js修改了如下代码片段:
if (this.options.search) {
html = [];
html.push(
'<div class="pull-' + this.options.searchAlign + ' search">',
sprintf('<input class="form-control' +
sprintf(' input-%s', this.options.iconSize) +
'" type="text" placeholder="%s"&

本文介绍了如何重写BootStrap Table的API,实现对特定列的搜索功能。通过修改.js文件中的代码片段,允许用户选择性地搜索表格中的列,提高了数据筛选的灵活性。
最低0.47元/天 解锁文章
692





