bootstrap-table从1.18.0版本移除了getAllSelections,取而代之为table加上maintainMetaData:true属性,如图
而获取选中的行数据仍旧用$(’#table’).bootstrapTable(‘getSelections’)即可达成效果
bootstrap-table
github官网:https://github.com/wenzhixin/bootstrap-table/tree/master
issue:
https://github.com/wenzhixin/bootstrap-table/pull/4665
bootstrap-table移除getAllSelections方法
最新推荐文章于 2022-04-24 13:55:13 发布