细说 datatables tableTools 扩展

这个全部都是前段数据调用,大大降低了后台对数据的处理,非常的好。


1、初始化安装 3部分

加载2个jquery.dataTables.css,dataTables.tableTools.css

加载jquery.dataTables.js

加载dataTables.tableTools.js

1、语言汉化

"language":

2、导出当前页面的数据  看清楚最后一句话 非常重要

可以看以下参数 
oSelectorOpts 

//http://datatables.net/extensions/tabletools/button_options#Common-options-(apply-to-all-button-types)
Control the data to be used from the source DataTable. DataTables has the ability to select which rows to use, and the order they are to be used in, through its $ API method. This option provides that ability for TableTools export buttons as well, so you can have only the current data exported (for example).

3、列数据的统计 footer调用

http://dt.thxopen.com/example/advanced_init/footer_callback.html


4、导出不行?flash没有加载

1、看下flash加载方式   这里的例子是dom 而安装的时候是sdom? 

http://datatables.net/extensions/tabletools/initialisation


转载于:https://my.oschina.net/u/554046/blog/395040

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值