使用JeePlus框架,bootstrap table实现表格每列过滤功能:导入bootstrap-table-filter-control.js报错
报错信息:
js引入(bootstrap、bootstrap-table已在公共引入):
<link href="${ctxStatic}/plugin/bootstrapTable/extensions/filter-control/bootstrap-table-filter-control.css" rel="stylesheet" />
<script src="${ctxStatic}/plugin/bootstrapTable/extensions/filter-control/bootstrap-table-filter-control.js"></script>
jsp代码:
<!-- 表格 -->
<table id="bdPsndocTable"
toolbar="#toolbar"
data-reorderable-columns="true"
data-filter-control="true">
</table>
可能是bootstrap-table版本过低与filter-control插件版本不匹配导致,低版本的bootstrap-table中无fieldsColumnsIndex这个属性,可以使用1.12.1版本的bootstrap-table ^_^