1 //"总条数":rowCount,"每页总条数":pageSize 2 pageTotal(rowCount, pageSize) { 3 if (rowCount == null || rowCount == "") { 4 return 0; 5 } else { 6 if (pageSize != 0 && rowCount % pageSize == 0) { 7 return parseInt(rowCount / pageSize 8 } 9 if (pageSize != 0 && rowCount % pageSize != 0) { 10 return parseInt(rowCount / pageSize) + 1; 11 } 12 } 13 },