Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

解决分页中一个小问题,可能也不叫做Bug #414

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on May 12, 2017

  1. 解决这样的问题:

    1.如果数据库中有11条数据,每页10条,当在页面中输入3的时候会从第1条开始查询10条,也就是显示了第一页的内容。
    2.如果全部数据有100页,过滤后的数据有30页,当过滤前在页面100停留,这时直接填写过滤条件并查询,页面会跳转到30页,但是数据会是过滤后第1页的数据
    以上两种情况其实都是因为传递的页码大于实际的页码导致的,所以在这里做此修改。
    panlover committed May 12, 2017
    Configuration menu
    Copy the full SHA
    fb91a0e View commit details
    Browse the repository at this point in the history