通过 bootstrap-table-filter-control 只获取完全匹配的结果
fetch only fully matched results by bootstrap-table-filter-control
我搜索了很多以找到 bootstrap-table-filter-control 完成的过滤器选项以获得完全匹配的输出而不是部分匹配的输出,但我不能有解决 this.Is 的方法吗?
以这个fiddle为例(没有严格搜索):
https://jsfiddle.net/eitanmg/ao5ybwvr/1/
和这个 fiddle(严格搜索):
https://jsfiddle.net/eitanmg/ao5ybwvr/2/
在搜索文本框中搜索数字 219 时,如果 filterStrictSearch
是 false
,结果将是匹配 219 和 2199 的两行。而当 filterStrictSearch
是 true
结果将只有219。
如果您通过 html 传递 filterStrictSearch: true
,它将变为 data-strict-search="true"
我搜索了很多以找到 bootstrap-table-filter-control 完成的过滤器选项以获得完全匹配的输出而不是部分匹配的输出,但我不能有解决 this.Is 的方法吗?
以这个fiddle为例(没有严格搜索):
https://jsfiddle.net/eitanmg/ao5ybwvr/1/
和这个 fiddle(严格搜索):
https://jsfiddle.net/eitanmg/ao5ybwvr/2/
在搜索文本框中搜索数字 219 时,如果 filterStrictSearch
是 false
,结果将是匹配 219 和 2199 的两行。而当 filterStrictSearch
是 true
结果将只有219。
如果您通过 html 传递 filterStrictSearch: true
,它将变为 data-strict-search="true"