GET http://127.0.0.1:8000/swf/copy_csv_xls_pdf.swf 404 (NOT FOUND)
那是错误!这是我的静态文件的结构:
在“js”文件夹中我放置了我的Tabletools,“swf”包含swf文件。以下是dataTables.tableTools.js
TableTools.DEFAULTS = {
"sSwfPath": "../swf/copy_csv_xls_pdf.swf",
"sRowSelect": "none",
"sRowSelector": "tr",
"sSelectedClass": null,
"fnPreRowSelect": null,
"fnRowSelected": null,
"fnRowDeselected": null,
"aButtons": [ "copy", "csv", "xls", "pdf", "print" ],
"oTags": {
"container": "div",
"button": "a", // We really want to use buttons here, but Firefox and IE ignore the
// click on the Flash element in the button (but not mouse[in|out]).
"liner": "span",
"collection": {
"container": "div",
"button": "a",
"liner": "span"
}
}
};
当我尝试使用swf文件的CDN替换路径时,没有错误但它不起作用。