Use of paging control layui and paging control layui

Source: Internet
Author: User

Use of paging control layui and paging control layui

$. GetJSON ()

$. GetJSON (url [, data] [, success (data, textStatus, jqXHR)])

Url is a required parameter, indicating the address of the json data;
Data is an optional parameter used to send data parameters when requesting data;
Success is a parameter. It is a callback function used to process the requested data.

// Content Page
<Div id = "notice_div"> </div>
// Pagination Control <div id = "notice_pages"> </div> <script> var roolurl = "http: //" + window. location. host; var urlAshx = roolurl + "/aa/Ashx/NoticeInfo. ashx "; // var pages = 0; // obtain the posted announcement content. function GetNoticeList (curr, cid) {$. getJSON (urlAshx, {// parameter action: "notice_action", courseid: cid, page: curr | 1, // parameters passed to the server. Here only nums is demonstrated: 3 // number of entries displayed per page}, function (datajson) {// method of successful execution if (datajson! = Null) {var norice_content = ""; // alert (datajson. pages); $ (datajson. rows ). each (function (n, Row) {norice_content + = "<div class = 'panel-default'> "; norice_content + = "<div class = 'panel-heading '>"; norice_content + = "

 

Related Article

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.