摘要: $(document).ready(function() { $('#example').dataTable({ "sDom": '<"top"iflp<"clear">>rt<"bottom"ilp<"clear">>' }); }); //自定义布局 //* l - Length changing * f - Filtering input* t - The table!* i - Information* p 阅读全文
posted @ 2011-05-31 17:30 w3live 阅读(3523) 评论(0) 推荐(1)
摘要: $(document).ready(function() { $('#example').dataTable({ //对表中的列进行重新定义 "aoColumnDefs": [ { "fnRender": function(oObj) { return oObj.aData[0] + '版本号:' + oObj.aData[3]; }, //对列数据重新定义,支持自定义方法 "aTargets": [1] //将以上定义的设置指向到某一列(列的ID,由0开始),也支持指向多个列,如[1,3,4]。也支持 阅读全文
posted @ 2011-05-31 17:00 w3live 阅读(1326) 评论(0) 推荐(0)
摘要: $(document).ready(function() { $('#example').dataTable({ "sScrollX": "100%", //表格的宽度 "sScrollXInner": "110%", //表格的内容宽度 "bScrollCollapse": true, //当显示的数据不足以支撑表格的默认的高度时,依然显示纵向的滚动条。(默认是false) "bPaginate": true, //是否显示分页 "bLengthC 阅读全文
posted @ 2011-05-31 15:06 w3live 阅读(6013) 评论(5) 推荐(1)