是什么把在TableTools swf文件文件、TableTools、swf

2023-09-08 14:15:12 作者:独尊

我是一个很新的程序员与tabletools或SWF路径没有任何经验。我想实现表格工具打印/导出/等,但至今只打印为我工作。大多数解决方案都表示,这意味着该SWF路径不正确。但我不知道该怎么把我的SWF的路径。可能有人请帮助?对不起,这样的一个基本问题。 :(

下面是我的插件和脚本数据表:

 <!DOCTYPE HTML>
< HTML LANG =EN>
< HEAD>
<元的charset =UTF-8>
<链接相对=样式表的href =htt​​p://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css>
<链接相对=样式表的href =htt​​p://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css>
&所述;脚本的src =htt​​p://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js>&所述; /脚本>
&所述;脚本的src =的http://$c$c.jquery.com/jquery.min.js>&所述; /脚本>
<脚本SRC =JS / bootstrap.min.js>< / SCRIPT>
<链接相对=样式类型=文/ CSS的href =// cdn.datatables.net/1.10.2/css/jquery.dataTables.css">
&LT;脚本类型=文/ JavaScript的字符集=UTF8SRC =// cdn.datatables.net/1.10.2/js/jquery.dataTables.js"></script>
&LT;脚本类型=文/ JavaScript的字符集=utf-8 src="https://datatables.net/release-datatables/extensions/TableTools/js/dataTables.tableTools.js"></script>
&LT;链接相对=样式表的href =htt​​ps://datatables.net/release-datatables/extensions/TableTools/css/dataTables.tableTools.css/&GT;
&LT;脚本&GT;
    $(文件)。就绪(函数(){
        $('#表标识符)。数据表({
            DOM:T&LT;清&GT; lfrtip',
            tableTools:{
                sSwfPath:/swf/copy_csv_xls_pdf.swf

            }

        });

    });
&LT; / SCRIPT&GT;
 

解决方案 绝顶地狱2手游下载 绝顶地狱2apk下载 66游戏网

您可以浏览可用的 CDN 在这里:数据表tabletools插件文件

通过访问,你会发现版本列表,单击其中一个例如的 2.2.2

所以向下滚动至底部,看看神奇的:

SWF

  

// cdn.datatables.net/tabletools/2.2.2/swf/copy_csv_xls.swf       //cdn.datatables.net/tabletools/2.2.2/swf/copy_csv_xls_pdf.swf

I'm a very new programmer with no experience with tabletools or swf paths whatsoever. I'm trying to implement Table Tools to print/export/etc but so far only print is working for me. Most solutions have said that means the swf path is incorrect. But I have no idea what to put as my swf path. Could anybody please help? Sorry for such a basic question. :(

Here are my plugins and script for dataTables:

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css">
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<script src="http://code.jquery.com/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<link rel="stylesheet" type="text/css" href="//cdn.datatables.net/1.10.2/css/jquery.dataTables.css">
<script type="text/javascript" charset="utf8" src="//cdn.datatables.net/1.10.2/js/jquery.dataTables.js"></script>
<script type="text/javascript" charset="utf-8" src="https://datatables.net/release-datatables/extensions/TableTools/js/dataTables.tableTools.js"></script>
<link rel="stylesheet" href="https://datatables.net/release-datatables/extensions/TableTools/css/dataTables.tableTools.css" />
<script>
    $(document).ready(function () {
        $('#table_id').DataTable({
            "dom": 'T<"clear">lfrtip',
            "tableTools": {
                "sSwfPath": "/swf/copy_csv_xls_pdf.swf"

            }

        });

    });
</script>

解决方案

You can browse tabletools files available for cdn here: datatable tabletools plugin files

by visiting the link you will find version list, click one for example 2.2.2

so scroll down to the bottom and see magic:

swf

//cdn.datatables.net/tabletools/2.2.2/swf/copy_csv_xls.swf //cdn.datatables.net/tabletools/2.2.2/swf/copy_csv_xls_pdf.swf