一:监听复选框事件
var checkedArr=[]; table.on('checkbox(demo)', function(obj){ if (obj.type=='all') return; if (obj.checked){ checkedArr.push(obj.data.LAY_TABLE_INDEX); //checkedArr[obj.data.id] = obj.data.LAY_TABLE_INDEX } else{ delete checkedArr[obj.data.LAY_TABLE_INDEX]; //delete checkedArr[obj.data.id]; } }); var checkStatus = table.checkStatus('orderTest'), data = checkStatus.data; if (checkStatus.isAll){ for (var i=0; i