我正在尝试通过此链接为我的项目使用jQuery的Datatable JS 。
我从同一来源下载了完整的库。软件包中给出的所有示例似乎都可以正常工作,但是当我尝试将其合并到我WebForms的CSS,JS中时,它们根本无法工作。
这是我所做的:
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="css/jquery.dataTables.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table id="myTable" class="display" cellspacing="0" width="100%">
            <thead>
                <tr>
                    <th>Name</th>
                    <th>Position</th>
                    <th>Office</th>
                    <th>Age</th>
                    <th>Start date</th>
                    <th>Salary</th>
                </tr>
            </thead>
            <tfoot>
                <tr>
                    <th>Name</th>
                    <th>Position</th>
                    <th>Office</th>
                    <th>Age</th>
                    <th>Start date</th>
                    <th>Salary</th>
                </tr>
            </tfoot>
            <tbody>
               <!-- table body -->
            </tbody>
        </table>
    </div>
    <script src="js/jquery.dataTables.js" type="text/javascript"></script>
    <script src="js/jquery.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $('#myTable').DataTable();
        });
    </script>
    </form>
</body>
</html>
我的解决方案中的JS和CSS文件结构如下:

我已经添加了手册中所示的所有必要的JS和CSS参考。渲染仍然不符合预期。没有CSS,甚至JS也无法使用。
同样在控制台中,我得到以下错误:
ReferenceError: jQuery is not defined
TypeError: $(...).DataTable is not a function
我仍然没有在这里绑定任何动态数据(例如在转发器之内),但仍然无法正常工作。
有人可以指导我解决这个问题的正确方向吗?
