Datatables--検索ボックスを無効にする-並べ替えを無効にする-改ページ数の表示を非表示にする-ヘッダーを修正する-デフォルトの並べ替えを設定する



Datatables Disable Search Box Disable Sorting Hide Display Number Page Breaks Fixed Header Set Default Sort



//Note: >> If the set properties don't work, try adding all the previous attributes to the quotes var table = $('#table').DataTable({ Paging: false, // prohibit paging Searching: false, / / ​​remove the search box method one bFilter: false, / / ​​remove the search box method two Info: false, // remove the text at the bottom bSort: false, // prohibit sorting fixedHeader: true, // fixed header bLengthChange: false, // remove the number of data drop-down boxes displayed per page Order:[1,'desc'], //Set the order according to the first few columns, (desc: descending asc: ascending order) Note that the number of columns is calculated from 0 language: { url: '/statics/DataTables/js/zh-cn.json', oPaginate:{ 'sFirst': 'Home', 'sPrevious': 'previous page', 'sNext': 'Next Page', 'sLast': 'last page', } } })