$(function () { $(".pagination").pagination({ totalData: total, jump: false, showData: pagesize, current: 1, coping: true, count: 3, homePage: "首页", endPage: "末页", prevContent: "上页", nextContent: "下页", callback: function (api) { page = api.getCurrent(); console.log(page); $(".zt_ul").addClass("undis"); $(".zt_ul") .eq(page - 1) .removeClass("undis"); }, }); });