Why do I report the wrong reason for asking for advice after using the datatables search function?
var table = $("- sharpexample"). DataTable ({
) "paging":true,
"pagingType":"full_numbers",
"lengthMenu":[5,10,25,50],
"processing": true,
"searching": true, //
"serverSide": true,//
"bRetrieve": true,
"order": [[ 0, "desc" ]], //
"ajax":{ //
"url":"action/server.php",
"dataType":"json" //
},
"columns":[ //
{"title":"id","data":"id"},
{"title":"","data":"kh"},
{"title":"","data":"kj"},
{"title":"","data":"cpx"},//
{"title":"","data":"zhd"},
{"title":"","data":"afzhd"},
{"title":"","data":"afxjd"},
{"title":"","data":"zxrq"},
{"title":"","data":"xs"},
{"title":"","data":"crrq"},
{"title":"","data":"skr"},
{"title":"","data":"skzh"}/*,
{"title":"action","data":null,"class":"align-center"} // */
],
"language":{ //
"sProcessing":"...",
"sLengthMenu":" _MENU_ ",
"sZeroRecords":"",
"sInfo": " _START_ _END_ _TOTAL_ ",
"sInfoEmpty": " 0 0 0 ",
"sInfoFiltered": "( _MAX_ )",
"sInfoPostFix": "",
"sSearch": ":",
"sUrl": "",
"sEmptyTable": "",
"sLoadingRecords": "...",
"sInfoThousands": ",",
"oPaginate": {
"sFirst": "",
"sPrevious": "",
"sNext": "",
"sLast": ""
},
"oAria": {
"sSortAscending": ": ",
"sSortDescending": ": "
}
}/*,
dom: "Bfrtip",
"buttons": [
{
"extend": "excel",
"text": "",
"className":"ml-15 btn btn-success",//class
"exportOptions": {
"modifier": {
"page": "current"
}
}
}
]*/
});//table end
I really can"t find a reason for using this plug-in for the first time. Ask my seniors for advice