<table id="selectCaseTable" class="table table-bordered table-striped table-hover">
<!-- table code... -->
</table>
<!-- jQuery 3 -->
<script src="/static/adminlet-2.4.10/bower_components/jquery/dist/jquery.min.js"></script>
<!-- Bootstrap 3.3.7 -->
<script src="/static/adminlet-2.4.10/bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<!-- AdminLTE App -->
<script src="/static/adminlet-2.4.10/dist/js/adminlte.min.js"></script>
<script src="/static/adminlet-2.4.10/bower_components/datatables.net/js/jquery.dataTables.min.js"></script>
<script src="/static/adminlet-2.4.10/bower_components/jquery-slimscroll/jquery.slimscroll.min.js"></script>
<script src="/static/adminlet-2.4.10/bower_components/datatables.net-bs/js/dataTables.bootstrap.min.js"></script>
<!-- FastClick -->
<script src="/static/adminlet-2.4.10/bower_components/fastclick/lib/fastclick.js"></script>
<!-- AdminLTE for demo purposes -->
<script src="/static/adminlet-2.4.10/dist/js/demo.js"></script>
<srcipt>
fuctions addSelectCase(){
...
$("#selectCaseTable").bootstrapTable('refresh');
}
</script>
当我打电话时bootstrapTable("refresh")
像下面这样
$("#selectCaseTable").bootstrapTable('refresh');
我在控制台上看到错误
类型错误:$(...).bootstrapTable 不是函数
你应该打电话Datatable()
not bootstrapTable()
如下代码所示:
var table = $('#example').DataTable();
table.ajax.reload();
如需更多知识,请点击此处查看之前的内容question https://stackoverflow.com/questions/12934144/how-to-reload-refresh-jquery-datatable .
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)