需要在datable重绘制的时候初始化
datatable.on('draw.dt', function () {
/*初始化i-checks*/
if(_checkbox) {
$('.i-checks').iCheck({
checkboxClass: 'icheckbox_square-blue',
radioClass: 'icheckbox_square-blue',
});
$('#checkall').on('ifChecked', function(event){
$('input').iCheck('check');
});
$('#checkall').on('ifUnchecked', function(event){
$('input').iCheck('uncheck');
});
}
});