Provides various official and user-released code examples. For code reference, you are welcome to exchange and learn simple ajax paging. You do not need to modify php code or other built-in paging classes, you only need a simple js Code.
Let's just talk about the train of thought. People can understand it at a glance.
The premise is to use the tp rendering template function in the Controller: fetch ();
First, is there a link to the page with the built-in pages of tp? Directly use js to obtain the herf of the a tag under the page, and then use return false; do not let him jump.
Second, (native js, I want to solve it myself) Is there a url parameter in jquery's ajax ?, Then, put the obtained a tag url in this parameter.
Background code
$ This-> assign ('investid', $ queried data );
Echo $ content = $ this-> fetch ('ajax _ XXX'); // rendered html TemplatePage code
{$ _ Page}