Most recent projects have used Kkpager to do pagination, and there is no problem when a page is called only once, but there is a problem when a page is called multiple times.
Collected on the internet for a long time, and finally found a solution, recorded to facilitate later use. Hope also can be convenient for the friends who need!
Kkpager is a simple pagination display plugin that needs to rely on jquery.
: Http://www.oschina.net/action/project/go?id=29450&p=download
Official Document Address: Https://github.com/pgkk/kkpager
Online Testing Links:
Blue Skin: http://pgkk.github.io/kkpager/example/pager_test.html
Orange skin: http://pgkk.github.io/kkpager/example/pager_test_orange_color.html
Click mode: http://pgkk.github.io/kkpager/example/pager_test_clickmode.html
Problems that exist:
In the Ajax refresh dynamic into the page number, regardless of changing the page number, is to display the first page number
Workaround:
The original invocation method:
Modify JS:, add "true" at the end, in order to reload config configuration
In fact, it is possible to solve the problem just mentioned here.
There is another workaround:
1. Modify the generated control code for Kkpaper.js:
1.1) The original code
1.2) The modified code
Call Method:
Effect:
Kkpager improvements, AJAX data changes but the page number does not change the problem, Kkpagerajax