s***@126.com
s***@126.com
  • 发布:2018-08-05 10:02
  • 更新:2019-05-05 15:16
  • 阅读:7599

下拉刷新结束endPulldown() is not a function

分类:MUI

是使用下拉刷新,是可以进行的。在刷新的逻辑函数最后一行加了

mui('#box').pullRefresh().endPulldown();

但控制台提示:Uncaught TypeError: mui(...).pullRefresh(...).endPulldown is not a function

但在手机上测试应用时,加了这句是会执行的。
找了很久,还是不知错哪?

2018-08-05 10:02 负责人:无 分享
已邀请:
m***@sina.com

m***@sina.com - 不忘初心

下面是我常用的,相互学习。

结束下拉刷新:
mui("#pull").pullRefresh().endPulldownToRefresh();
//上面的不要在mui.plusReady里调用,调用会报未定义,如果想进入就刷,可以使用init中的auto:true

主动调用下拉刷新可以使用:
mui("#pull").pullRefresh().pulldownLoading();
// 上面的可以在mui.plusReady里调用

上拉无数据:
mui("#pull").pullRefresh().endPullupToRefresh(true);

上拉有数据:
mui("#pull").pullRefresh().endPullupToRefresh();

重新开启刷新功能:
mui("#pull").pullRefresh().refresh(true);

张一三

张一三

在我的应用里没有用到 endPulldown()

//结束上拉刷新
mui('#pullContainer').pullRefresh().endPullupToRefresh();

//结束下拉刷新
mui('#pullContainer').pullRefresh().endPulldownToRefresh();

ONBURN

ONBURN

endPulldown(true)

该问题目前已经被锁定, 无法添加新回复