Home >Web Front-end >JS Tutorial >jQuery no refresh paging example code_jquery

jQuery no refresh paging example code_jquery

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-05-16 17:15:44977browse

Copy code The code is as follows:


    

       
       
       

                    var feedback = "";

                    $.each(data.list, function(index, d) {
                        var str ="";
                        str+= "

";
                        feedback += str;
                        });
                    $("#feedback").empty().append(feedback); //装载对应分页的内容

                    //alert(datac.list.length); 🎜>                                                                                                                     // Create Pagination
$("#page").pagination(num_entries, {
num_edge_entries: 1, //Number of edge pages
num_display _entries: 5, //Number of main pages
                                       callback: pageselectCallback,
              items_per_page: 3, // Display 1 item per page                  });

                pageselectCallback(0);
function pageselectCallback(page_index, jq){

var resultList = $(".result");
//var feedback = "";

//alert(resultList.length);

$(".result").each( function(index, data) {
                             //alert(index); = page_index){

              $(this).css('display','block');

Return false;

}

//ajax loading
$.getJSON("testPage",null, function(data){initPagination(data)});
});











Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn