//获取行对象
var rows = $('#bootstrap-table').bootstrapTable('getSelections');
//判断是否选中行
if (!rows || rows.length == 0) {
alert("请选中一行!");
return;
}
//判断选中的行数
if (rows.length > 1) {
alert("请选中一行!");
return;
}
bootstraptblae 选中一行
猜你喜欢
转载自www.cnblogs.com/mas23453/p/bootstraptblae_selectrows.html
今日推荐
周排行