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

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3f982-2c4d3.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3f982-2c4d3.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?