我在jquery中使用数据表但没有工作。我可以搭把手。这是脚本。谢谢! #userList是一个div thtat包含一个表条带表 - 压缩的order-columns表。谢谢!
{{1}}
答案 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)
我认为问题出在你说的地方:
#userList
是div
我认为#userList
不能是div
标记。它必须是table
标记的ID。