$(...)。DataTable不是一个函数

时间:2016-06-07 11:11:39

标签: jquery

我在jquery中使用数据表但没有工作。我可以搭把手。这是脚本。谢谢! #userList是一个div thtat包含一个表条带表 - 压缩的order-columns表。谢谢!

{{1}}

2 个答案:

答案 0 :(得分:2)

To use DataTable add the following references at the top of the page.Please note the order matters:

<link href="https://cdn.datatables.net/1.10.12/css/jquery.dataTables.min.css" rel="stylesheet" />
<script src="//code.jquery.com/jquery-1.12.3.min.js"></script>
<script src="https://cdn.datatables.net/1.10.12/js/jquery.dataTables.min.js"></script>

答案 1 :(得分:1)

我认为问题出在你说的地方:

  

#userListdiv

我认为#userList不能是div标记。它必须是table标记的ID。