DataTables ajax 데이터 설정 가 져 오기
2278 단어 DataTables ajax
$('#example').DataTable({
"bDestory" : true,
"bProcessing" : true,
"serverSide": true,// , false
"bSort" : true, //
"searching" : false,// ,
"sPaginationType" : "full_numbers",//
"ajax" : url,//ajax
"iDisplayLength" : 50, //
"oLanguage" : {
"sProcessing" : "<img src='"+ XFrame.getContextPath()
+ "/assets/img/loading.gif' />",
"sLengthMenu" : " _MENU_ ",
"sZeroRecords" : " , ",
"sInfo" : " _START_ _END_ / _TOTAL_ ",
"sInfoEmpty" : " ",
"sInfoFiltered" : "( _MAX_ )",
"sSearch" : " :",
"oPaginate" : {
"sFirst" : " ",
"sPrevious" : " ",
"sNext" : " ",
"sLast" : " "
},
"sZeroRecords" : " ",
},
"columns" : [ { //
"data" : "eventId"}, {
"data" : "source"}, {
"data" : "userId"}, {
"data" : "account"}, {
"data" : "level"}, {
"data" : "url"}, {
"data" : "createTime"} ],
"columnDefs" : [ {//
"targets" : [ 7 ], // , 0
"data" : "eventId", //
"render" : function(data, type, full) { //
return "<a href=\"javascript:Member.log('"
+ data
+ "')\"> </a>";
}
} ]
});