function loadmore(){ var strlength = $("#new-task li").length; initBeeRequest(function(token, url) { var json = { token: token, jobKind: "1", rows: "10", page: "1" }; $.ajax({ url: url + "job.do", type: 'POST', dataType: "json", data: { para: JSON.stringify(json) }, success: function(data2) { if (data2.status == "1") { if(data2.responseData.count <= strlength){ return }else{ $("#new-task").empty() $.each(data2.responseData.newTasks, function(i, e) { var item = '
' + e.jobName + '
任务编码:' + e.jobCode + '
refresher.init({ id:"all", pullDownAction:Refresh, pullUpAction:Load }); var generatedCount = 0; function Refresh() { myScroll.refresh(loadmore()); } function Load() { myScroll.refresh(); }然后是这样写? 回复