您好,欢迎访问一九零五行业门户网

bootstrap如何设置表格单选按钮

效果图:点击 bootstraptable 单选的按钮, 选中该列, 取到该列的所有值。
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如何设置表格单选按钮的详细内容。
其它类似信息

推荐信息