actionscript-3 - 在 TableTools 中将什么作为 swf 文件

标签 actionscript-3 flash datatables tabletools

我是一个非常新的程序员,没有任何使用 tabletools 或 swf 路径的经验。我正在尝试实现表格工具来打印/导出/等,但到目前为止只有打印对我有用。大多数解决方案都表示 swf 路径不正确。但我不知道将什么作为我的 swf 路径。有人可以帮忙吗?很抱歉回答这样一个基本问题。 :(

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

<!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>

最佳答案

您可以在此处浏览可用于 cdntabletools 文件:datatable tabletools plugin files

通过访问链接你会找到版本列表,例如单击一个2.2.2

所以向下滚动到底部,看看魔法:

瑞士法郎

//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

关于actionscript-3 - 在 TableTools 中将什么作为 swf 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25536782/

相关文章:

javascript - 从 Flash 调用 jQuery 函数

actionscript-3 - 在flash as3中设置定时器

actionscript-3 - 向前推进AS3?

javascript - 使用新数据刷新数据表

actionscript-3 - 同时使用两个网络摄像头 AS3?

ios - 需要与 iTunes 共享在 ios-air-app 中创建的文档

actionscript-3 - Actionscript 3 加载外部 swf 转换问题

c# - 将值从 C# 传递到 ActionScript 3 和跨域问题

javascript - DataTables - 使用 fnUpdate 更新行替换不同的行

jQuery 数据表 : Delay search until 3 characters been typed OR a button clicked