var data = [{syncStatus:true},{syncStatus:false}];
// table.render之前设置自定义checked的列名称
table = $.extend(table, {config: {checkName: 'syncStatus'}});
table.render({
elem: '#dataTables',
id: 'dataTables',
url: '地址',
width: admin.screen() > 1 ? '100%' : '',
height: $win.height() - 62,
defaultToolbar: [],
toolbar: '#headerToolBarBox',
cols: [[]]
});
让LayUI的table默认选中
最新推荐文章于 2024-05-17 15:59:45 发布