我在一个网页中显示了多个表格,由以下代码初始化:
/* 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 错误,但是当单击任何按钮时,它就是不起作用。请帮我调试/找出问题所在!