首先按照官网提供的github资源,目录中的welcom.html是一个很完整的demo,可以根据demo写出一个完整的表格数据可视化以及删除修改的操作。
我的代码如下:
前端html
<table id="userTable"> </table>
<pre name="code" class="html"> <!-- js placed at the end of the document so the pages load faster -->
<script src="js/jquery"></script>
<script src="js/bootstrap/bootstrap.min.js"></script>
<script type="text/javascript" src="js/globalVariable.js"></script>
<!--common script for all pages-->
<script src="js/common-scripts.js"></script>
<!--script for this page only-->
<script src="js/bootstrap/bootst