We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
测试条件:
得到的结果是:[1,2,3,4,5,6],实际应该是[2,3,4,5,6]
经检查发现:
if (endPageNumber - startPageNumber < count) { startPageNumber = endPageNumber - count; if (startPageNumber <= 0) { startPageNumber = 1; } }
if判断有问题. startPageNumber,endPageNumber都是已经包含进了,所以相减的时候应该+1,这样才能保证中间页<count
The text was updated successfully, but these errors were encountered:
No branches or pull requests
测试条件:
得到的结果是:[1,2,3,4,5,6],实际应该是[2,3,4,5,6]
经检查发现:
if判断有问题.
startPageNumber,endPageNumber都是已经包含进了,所以相减的时候应该+1,这样才能保证中间页<count
The text was updated successfully, but these errors were encountered: