0

我使用下面的代码在数据表中添加导出功能。我看不到导出按钮,我正在使用母版页。谁能给点宝贵意见

    $(document).ready(function () {
        $('#tblOscarNominees').dataTable({
             "bJQueryUI": true,
               "sPaginationType": "full_numbers",
                "aaSorting": [[4, "desc"]],
                                    "sDom": '<"H"Tfr>t<"F"ip>',
                "oTableTools": {
                    "aButtons": [
            "copy", "csv", "xls", "pdf",
            {
                "sExtends": "collection",
                "sButtonText": "Save",
                "aButtons": ["csv", "xls", "pdf"]
            }
        ]

}

以下是我在母版页中设置的参考

        <link href="DataTables/media/css/TableTools_JUI.css" rel="stylesheet" type="text/css" />  
<link href="DataTables/media/css/TableTools.css" rel="stylesheet" type="text/css" />




<link href="DataTables/css/jquery-ui-1.8.21.custom.css" rel="stylesheet" type="text/css" />


<script src="../DataTables/js/jquery.js" type="text/javascript"></script>
<script src="../DataTables/js/jquery.dataTables.js" type="text/javascript"></script>
<script src="../DataTables/js/jquery.dataTables.editable.js" type="text/javascript"></script>
<script src="../DataTables/js/jquery.jeditable.js" type="text/javascript"></script>
<script src="../DataTables/js/jquery-ui.js" type="text/javascript"></script>
<script src="../DataTables/js/jquery-1.7.2.min.js" type="text/javascript"></script>
<script src="../DataTables/js/jquery.dataTables.min.js" type="text/javascript"></script>


<script src="../DataTables/js/jquery-ui-1.8.21.custom.min.js" type="text/javascript"></script>
<script src="../DataTables/js/jquery.dataTables.columnFilter.js" type="text/javascript"></script>

   <script src="DataTables/media/js/TableTools.js" type="text/javascript"></script>
    <script src="DataTables/media/js/ZeroClipboard.js" type="text/javascript"></script>
4

0 回答 0