jQuery TableTools not working

谁说胖子不能爱 提交于 2019-12-01 14:21:40
NiL

Basically the problem is about the specify the swf path incorrectly.

"sSwfPath": "http://localhost/TableTools/media/swf/ZeroClipboard.swf"

Try to replace this path with

"sSwfPath": "../media/swf/ZeroClipboard.swf"

Instead of an sSwfPath value to a local file, try this url:

http://datatables.net/release-datatables/extras/TableTools/media/swf/copy_csv_x‌​ls_pdf.swf

For some reason this provides functionality for me, but the local file does not.

Think this will help

"sDom": 'T<"H"plfr>t<"F"ip>',
"oTableTools": {
            "aButtons": [ "csv", "pdf" ],
            "sSwfPath": "https://datatables.net/release-datatables/extras/TableTools/media/swf/copy_csv_xls_pdf.swf"
        }
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!