添加数据table分页

Add data table pagination

我要添加数据table分页:

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

...继续

使用 jQuery 您可以通过添加到 table-responsive 的新 class 添加分页,如下所示:

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