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: