DataTable无法识别为函数?

时间:2016-11-08 17:16:32

标签: javascript jquery html jsp datatables

为什么DataTable()无法识别为函数? 这是我的代码:

    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
            <link rel="stylesheet" href="css/dataTables.bootstrap.min.css"> 
            <link rel="stylesheet" href="css/bootstrap.css">
            <link rel="stylesheet" href="css/bootstrap.min.css">
            <script type="text/javascript" src="js/jquery-1.12.3.js"></script>
            <script type="text/javascript" src="js/jquery.dataTables.min.js"></script>
            <script type="text/javascript" src="js/dataTables.bootstrap.min.js"></script>

            <script type="text/javascript">
                $(document).ready(function(){
                    $('#account_table').DataTable({
                    });
                }); 
            </script>
        </head>
        <body>
            <table style="width:100%;" role="grid" id="account_table" class="table table-bordered dataTable no-footer" cellspacing="0">
                <thead align="center" >
                    <tr role="row" align="center" >
                        <th style="width: 200px;" class="sorting_asc">Balance</th>
                    </tr>
                </thead>
                <tbody>
                    <c:forEach items="${AccountsList}" var="list">
                        <tr><td>${list.accounts}</td></tr>
                    </c:forEach>
                </tbody>
            </table>
            <script type="text/javascript">
                $('#account_table').removeClass('display').addClass('table table-bordered');
            </script>
        </body>
    </html>

虽然我已经链接了DataTable的js文件但它仍无法正常工作

0 个答案:

没有答案