/** * @description: 分页 * @author: ishang_pan * @update: ishang_pan (2019-08-29 10:57) */ $(function () { var current = parseInt($("pagination").attr("currentpage")); var count = parseInt($("pagination").attr("pagecount")); var total = parseInt($("pagination").attr("total")); if(count < 1){ count = 1; } if(current > count){ location.href = '/404.html'; } if(count > 1){ //$("#pagination").append('
'); $("#pagination").append('