0

我在一个网页中显示了多个表格,由以下代码初始化:

/* Tables initialisation */
$(document).ready(function() {
$('.dataTable').dataTable({
    "sDom": "<'row-fluid'<'span6'l><'span6'f>r>t<'row-fluid'<'span3'T><'span3'i><'span6'p>>",
    "sPaginationType": "bootstrap",
    "bStateSave": true,
    "oLanguage": {
        "sLengthMenu": "_MENU_ records per page"
    },
    "oTableTools": {
        "sSwfPath": "http://cdnjs.cloudflare.com/ajax/libs/datatables-tabletools/2.1.4/swf/copy_csv_xls_pdf.swf",
        "aButtons": [ "copy", "csv", "xls", "pdf", "print" ]
    }
});
});

Chrome 或 Safari 中都没有 javascript 错误,但是当单击任何按钮时,它就是不起作用。请帮我调试/找出问题所在!

4

1 回答 1

0

没关系!显然它现在正在工作,而且一直如此。读完这篇文章后我意识到了这一点:http: //datatables.net/forums/discussion/15605/even-tabletool-examples-are-not-working :)

于 2013-05-30T16:39:53.550 回答