1. 程式人生 > >MUI - 上拉加載不執行

MUI - 上拉加載不執行

pull col 代碼 動態分頁 lis 添加 -i item nbsp

mui(‘#pullrefresh‘).pullRefresh().refresh(true);

if($(".list-item").length == countDataSum) {
	mui(‘#pullrefresh‘).pullRefresh().endPullupToRefresh(true); //參數為true代表沒有更多數據了。
} else {
	mui(‘#pullrefresh‘).pullRefresh().endPullupToRefresh(false);
}

 

數據為動態分頁加載,初次使用並未出錯,上述代碼某地方導致使用加載後,便將加載禁用,在觸發某個方法或事件後,需要後續使用到上拉加載的地方添加

mui(‘#pullrefresh‘).pullRefresh().refresh(true);//重置上拉加載

  

即解決問題。

MUI - 上拉加載不執行