我正在使用1.10.2版本的数据表,我的代码在
之下状态保存仅在没有兼容性视图的情况下工作,并且列重新排序与没有兼容性视图的列过滤冲突并且兼容性工作因此我需要在IE 10浏览器中没有兼容性视图的情况下工作。
$(document).ready(function() {
var table;
// DataTable
table = $('#example').dataTable({
"processing": true,
stateSave: true,
"deferRender": true, // to make the search fast
"dom": 'C<"clear">Rfltipr', // for column Re-odering and column visibilty.
"ajax": {
"url": "/my/example.so",
"type": "GET"
},
"columns": [{
"title": "name",
"data": "name",
"name": "name"
}, {
"title": "addeddate",
"data": "addeddate",
"name": "added date"
}]
});
table.columnFilter({
sPlaceHolder: "head:before",
aoColumns: [{
type: "text"
}, {
type: "date-range",
bRegex: true,
bSmart: true
}
}
]
}); $.datepicker.regional[""].dateFormat = 'yy-mm-dd'; $.datepicker.setDefaults($.datepicker.regional['']);