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 + = "