首页 > 解决方案 > 添加数据表分页

问题描述

我想添加数据表分页:

  <div class="table-responsive">
                <table class="table table-bordered"id="dataTable" cellspacing="0">

... 继续

标签: javascriptjquerydatatable

解决方案


使用 jQuery,您可以通过添加到表响应中的新类来添加分页,如下所示:

    $(document).ready(function () {
        $('#dataTable').DataTable(); //your data table id
        $('.table-responsive').addClass('bs-select'); //add class
    });

推荐阅读