2011-09-10 73 views

回答

1

我不認爲你甚至需要爲這個插件...

$(document).ready(function() { 

    $("#ButtonToClickToLoadNext50").click(function() { 
     $.ajax({ 
      url: "/getjobs", 
      data: { 
       start: 51, 
       end: 100 
      }, 
      datatype: "json", 
      type: "POST", 
      success: function(data, status, xhttp) 
      { 
       var html = ""; 

       for (var i = 0; i < data.length; i++) 
       { 
        // build up html 
        html += "<div>content to display</div>"; 
       } 

       $("#divcontainingjobs").append(html); 
      } 
     }); 
    }); 
});