What about Jquery.Pagination.js paging? Paging has been displayed, that is, jump back to enter the json data

1. Paging is now displayed, which is to jump back into the json data.
2. The code is as follows:

      function ajaxlist(){
       $.get("/sc/list",function(data) {
           var pagenum = data.result;
           var obj = pagenum.serviceCategorys;
           $(".table tbody").empty();
             
       });

    }
    $.get("/sc/list",function(data) {
        var pagedata = data.result;
        $("-sharppaginate").pagination(pagedata.count, {
            current_page: pagedata.page,
            items_per_page: 3,
            num_display_entries: 10,
            next_text: ">",
            prev_text: "<",
            num_edge_entries: 1,
            link_to: "/sc/list?page=__id__",
            callback: function () {
                ajaxlist();
            }
        });
    });

3. Screenshots are as follows:

clipboard.png

clipboard.png

Mar.17,2021

have you solved this problem?


what is another request for data in the ajaxlist method passed to callback?
has a very complete blog to refer to: https://blog.csdn.net/m0_3808.
had better ask the question more specifically and describe the problem clearly

Menu