iReho
iReho
  • 发布:2017-04-07 22:58
  • 更新:2017-06-08 16:19
  • 阅读:3779

单webview模式官方demo只有下拉刷新,如何实现上拉加载?

分类:MUI

单webview模式官方demo只有下拉刷新,如何实现上拉加载?

2017-04-07 22:58 1 条评论 负责人:无 分享
已邀请:

最佳回复

DCloud_UNI_CHB

DCloud_UNI_CHB

  • 德里克的骄傲

    新版的下拉刷新。pulldownLoading这个方法被删除了吗?

    2017-06-09 14:13

  • DCloud_UNI_CHB

    回复 德里克的骄傲:重构为beginPulldown方法,不过最新github上mui已兼容老的pulldownLoading()调用

    2017-06-09 14:36

9***@qq.com

9***@qq.com

mui.init({  
    pullRefresh: {  
        container: '#refreshContainer',  
        down: {  
            callback: function() {  
                console.log('down');  
                this.endPulldownToRefresh();  
                setTimeout(function(_this) {  
                    //等待回弹结束后再重置上拉加载,避免不满一屏时自动触发上拉加载。  
                    _this.refresh(true);  
                }, 600, this);  
            },  
        },  
        up: {  
            auto: true,  
            callback: function() {  
                console.log('up');  
                this.endPullupToRefresh(false);  
                $(this.bottomPocket).addClass('mui-visibility');  
                //显示上拉加载更多。  
            },  
        },  
    },  
});
德里克的骄傲

德里克的骄傲

同问。

  • 王老吉

    你好,请问你解决了吗??

    2017-05-03 10:23

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