jQuery的DataTables插件的使用方法

一:官方網站:http://www.datatables.net/ html

二:基本使用:http://www.guoxk.com/node/jquery-datatables node

一、DataTables的默認配置 jquery

$(document).ready(function() { 網站

$('#example').dataTable(); .net

} ); htm

示例:http://www.guoxk.com/html/DataTables/Zero-configuration.html 排序

二、DataTables的一些基礎屬性配置 io

"bPaginate": true, //翻頁功能 table

"bLengthChange": true, //改變每頁顯示數據數量 function

"bFilter": true, //過濾功能

"bSort": false, //排序功能

"bInfo": true,//頁腳信息

"bAutoWidth": true//自動寬度

相關文章
相關標籤/搜索