layui 如何获取表格复选框选择的数据集合?
setlink-table 是表格的id
var checkStatus = layui.table.checkStatus('setlink-table').data; var ids = []; for (var i = 0; i < checkStatus.length; i++) { ids.push(checkStatus[i].id) } ids = ids.join(','); console.log('你选择了->',ids);