Twitter bootstrap 如何在此表中添加datatable编辑器?
请帮助我如何将datatable editor安装到此表。?我搜索了很多,但找不到我能理解的合适的例子。如果你能帮我解决这个问题,我非常感谢你。如果有任何其他的解决办法,除了指导我。谢谢你的时间和帮助Twitter bootstrap 如何在此表中添加datatable编辑器?,twitter-bootstrap,jquery-plugins,datatables,Twitter Bootstrap,Jquery Plugins,Datatables,请帮助我如何将datatable editor安装到此表。?我搜索了很多,但找不到我能理解的合适的例子。如果你能帮我解决这个问题,我非常感谢你。如果有任何其他的解决办法,除了指导我。谢谢你的时间和帮助 <!doctype html> <html> <head> <meta charset="utf-8"> <title>ISSUE</title> &l
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>ISSUE</title>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css">
<link rel="stylesheet" href="http://cdn.datatables.net/1.10.1/css/jquery.dataTables.css">
<link rel="stylesheet" href="http://cdn.datatables.net/responsive/1.0.0/css/dataTables.responsive.css">
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
<script src="http://cdn.datatables.net/1.10.1/js/jquery.dataTables.min.js"></script>
<script src="http://cdn.datatables.net/responsive/1.0.0/js/dataTables.responsive.js"></script>
<!-- Latest compiled and minified CSS -->
</head>
<body>
<table id="example" 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>
<tbody>
<tr>
<td>Tiger Nixon</td>
<td>System Architect</td>
<td>Edinburgh</td>
<td>61</td>
<td>2011/04/25</td>
<td>$320,800</td>
</tr>
<tr>
<td>Garrett Winters</td>
<td>Accountant</td>
<td>Tokyo</td>
<td>63</td>
<td>2011/07/25</td>
<td>$170,750</td>
</tr>
</tbody>
</table>table>
</body>
</html>
<script>
$(document).ready(function(){
$('#example').DataTable();
});
</script>
问题
名称
位置
办公室
年龄
开始日期
薪水
老虎尼克松
系统架构师
爱丁堡
61
2011/04/25
$320,800
加勒特温特斯
会计
东京
63
2011/07/25
$170,750
表>
$(文档).ready(函数(){
$(“#示例”).DataTable();
});
您需要添加一个小脚本来初始化datatable…基本上您需要表的id,在您的例子中应该是$(“#示例”).datatable()代码>@Hackerman你能帮我个忙吗?没问题,Bigray@哈克曼:您能用一种简单的方式将此表连接到数据表编辑器吗?