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//自动宽度

相关文章
相关标签/搜索