You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
195 B
11 lines
195 B
package commonus
|
|
|
|
//计算翻页Offser数据
|
|
func CalculatePages(page, pageSize int) (offser int) {
|
|
pageVal := page - 1
|
|
if pageVal < 0 {
|
|
pageVal = 0
|
|
}
|
|
offser = pageVal * pageSize
|
|
return
|
|
}
|
|
|