varDataTables = $ (". Table"). dataTable ({data:d,//is the value of Ajax, there is no direct use of the plug-in with the request data, personal data way to control some columns : [{//Set table contents sdefaultcontent:"",//default value data:"Id",//Key bvisible for the data JSON :false //This column does not display}, {title:Name, Data:"Name",
Class: "",//Set the class value of the current TD
Render: function (data, type, full) { //the contents of the custom module, data is the value of the name corresponding to the key, all values
Return "<div title=" + Data + ">" + Data + "</div>"; //You can prevent the width of the table TD from being set by setting the width of the div, and you can add the title
} }], //"Columndefs": [{//Set Edit button //"Targets": [3], //"Data": "id", //"Render": function (data, type, full) { //return "<a class= ' Updata ' href= ' # ' > Edit </a>"; // } //}],Bpaginate:false,//whether to display (apply) the page splitterBinfo:false,//If footer information is displayed, the number of records is displayed in the lower left corner of the DataTables pluginBsort:true,//whether to start the sorting function for each fieldaasorting: [[0, ' ASC ']],//default row sequence Bselectall:false, Fncallback:function () { }, //Opagesize:10, //osorttype: "desc", //osortcol: "Proname",Bprocessing:true, Olanguage: {//Multi-language configuration"Sprocessing": "Loading in ...", "Slengthmenu": "Show _menu_ records per page", "Szerorecords": "Sorry, the query does not have the relevant data!" ", "Semptytable": "No data exists in table!" ", "Sinfo": "Current display _start_ to _end_ bar, total _total_ Records", "sinfofiltered": "Data table is _max_ record", "Ssearchplaceholder": "??" Find,//placeholder in search box"Ssearch": "",//font before the search box"Opaginate": { "Sfirst": "Home", "Sprevious": "Prev", "Snext": "Next Page", "Slast": "Last" } } });
jquery DataTable Instance Operations