js 代码 : bootstraptable 初始化
相关推荐:《bootstrap入门教程》
注意:
singleselect : true, // 单选checkbox
columns : [ { checkbox: true } ] // bootstraptable 显示单选checkbox列
bootstraptable url : '<c:url value='/item/entry/main_info/list_data'/>', 后台json数据。
注意:第一个图片中的 chrome f12 中的 object 就是selectcontent =table.bootstraptable('getselections')[0] 中的数据了。
这样我们就能取到bootstrap单选框选择一行的数据。
以上就是bootstrap如何设置表格单选按钮的详细内容。