jquery easyui 1.3.4 DataGrid pagenumber Setup leads to the solution of two requests

Source: Internet
Author: User

$('#table'). DataGrid ({URL:'/get/data/path/to/your/server', PageNumber:2, PageSize:Ten,...}); When hand set PageNumber>=2, check the network request twice, and the second request pagenumber = =1; second, reason: Jquery.easyui.min.js1.3.4Of7821-7828line code; Because the page control initializes the parameter total==0, pagenumber = =1, and the first request for the second page of the parameter and the control initialization parameters inconsistent, led to the request again: _5DC (_545); This code is intended to solve a problem: when the page refreshes, the number of changes to be asked, need to update the pagebar of the display; third, the solution:7822Line (Please note that the version1.3.4jquery.easyui.min.js): _54a.pagination ("Refresh"{total:data.total}); modified to: _54a.pagination ("Refresh", {pagenumber:opts.pagenumber| |_54b.pagenumber,total:data.total}); OK,~

jquery easyui 1.3.4 DataGrid pagenumber Setup leads to the solution of two requests

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.