你能帮我解决数据表吗?我正在使用离线库。这是我的目录。
<link rel="stylesheet" type="text/css" href="../css/style.css">
<link rel="stylesheet" type="text/css" href="../css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="../css/dataTables.bootstrap.min.css">
<script src="../js/jquery.js"></script>
<script src="../js/jquery-3.2.1.min.js"></script>
<script src="../js/tether.js"></script>
<script src="../js/tether.min.js"></script>
<script src="../js/bootstrap.min.js"></script>
<script src="../js/jquery.dataTables.min.js"></script>
<script src="../js/dataTables.bootstrap.min.js"></script>
CSS
JS
这是我的jquery函数
$(document).ready(function(){
$("#tblproducts").DataTable({
responsive: true
});
});
我收到了这些错误......
Uncaught TypeError: $(...).DataTable is not a function
at HTMLDocument.<anonymous> (view_products.php:131)
at j (jquery-3.2.1.min.js:2)
at k (jquery-3.2.1.min.js:2)
(anonymous) @ view_products.php:131
j @ jquery-3.2.1.min.js:2
k @ jquery-3.2.1.min.js:2