bootstraptblae 选中一行

//获取行对象    
var rows = $('#bootstrap-table').bootstrapTable('getSelections');
	//判断是否选中行
	if (!rows || rows.length == 0) {
		alert("请选中一行!");
		return;
	}
            //判断选中的行数
	if (rows.length > 1) {
		alert("请选中一行!");
		return;
	}
posted @ 2019-12-11 15:38  弧光MAS  阅读(166)  评论(0)    收藏  举报