Thinkphp_ajax Paging Implementation

Source: Internet
Author: User
  1. Use the paging class to get the initial number of pages, and then get the category page of the Click event because the generated page number is a link so when you get the Click event, use return FALSE to block a link jump

  2. Through Is_ajax to determine whether the request from the Ajax if it is then receive passed parameters with fetch to get the current paging partial page returned to JS receive

  3. Replace the current paging content with three big strides by using the JQ HTML object to complete the Ajax thinkphp of the page

Thinkphp_ajax Paging Implementation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.