bootstrap-table回显选中行
时间: 2023-05-04 10:01:43 浏览: 613
在使用bootstrap-table时,要回显选中行,可以使用以下步骤:
1.设置参数:
$('#table').bootstrapTable({
clickToSelect: true,
singleSelect: true,
onCheck: function(row){
//选中行时触发的操作
}
});
2.在onCheck事件中实现选中行的回显操作,例如:
$('#table').bootstrapTable({
clickToSelect: true,
singleSelect: true,
onCheck: function(row){
$('#row-info').html(JSON.stringify(row));
//将选中行信息展示在页面上
}
});
阅读全文
相关推荐















