<!--#INCLUDE FILE="../function/db.asp" --> <!--#INCLUDE FILE="../function/control.asp" --> <% dim master_rs dim staff_id dim sql dbf_connection() staff_id = cf_check_login_staff_id if Request.QueryString("hd_has_sea…
在查询数据的时候或者展示数据的时候经常会使用分页,介绍几种简单的分页算法: //总的页数 int total = 30: //每页个数 int pageSize = 6; 1.one int pageSum = (total-1)/pageSize + 1; 2.two int pageSum = total%pageSize == 0 ? total / pageSize : total / pageSize + 1; 3.three int pageSum = (total+pag…