bootstrap table 获取选中行数据

var a= $table.bootstrapTable('getSelections');

if(a.length==1){

     b.val(a[0].id);

}else{alert("请选中一行")}

 

posted @ 2017-04-19 10:53  朝闻道91  阅读(37851)  评论(1编辑  收藏  举报