layuitable设置默认选中

layuiTable设置默认选中

此语句作用是修改table列选中的依据,根据Checked字段的状态来判断改行是否选中,这里Checked为bool类型

 table = $.extend(table, { config: { checkName: 'Checked' } });

完整用法
layuitable设置默认选中_第1张图片
此处json:

"{"code":0,"msg":"查询成功","count":2,"remark":null,"data":[{"id":1,"skuIdIsv":"1","skuName":"测试商品1","IsDelete":false,"Checked":false},{"id":2,"skuIdIsv":"2","skuName":"测试商品2","IsDelete":false,"Checked":true}]}"

你可能感兴趣的:(C#,layui)