s***@163.com
s***@163.com
  • 发布:2018-11-02 19:35
  • 更新:2018-11-05 09:55
  • 阅读:2766

解决mui下拉刷新使用mui(querySelector).pullRefresh().setStopped(false);禁止和恢复的问题

分类:MUI

把你们的mui.min.js的源码部分修改如下

修改前


disablePullupToRefresh: function() {  
                            this._initPullupRefresh(), this.bottomPocket.className = "mui-pull-bottom-pocket "   e, window.removeEventListener("dragup", this)  
                        },  
                        enablePullupToRefresh: function() {  
                            this._initPullupRefresh(), this.bottomPocket.classList.remove(e), this.pullCaption.className = g   " "   h, this.pullCaption.innerHTML = this.options.up.contentdown, b.addEventListener("plusscrollbottom", this), window.addEventListener("dragup", this)  
                        }  

修改后


disablePullupToRefresh: function() {  
                            this._initPullupRefresh(), this.topPocket.className = "mui-pull-bottom-pocket "   e, window.removeEventListener("dragup", this)  
                        },  
                        enablePullupToRefresh: function() {  
                            this._initPullupRefresh(), this.topPocket.classList.remove(e), this.topCaption.className = g   " "   h, this.topCaption.innerHTML = this.options.up.contentdown, b.addEventListener("plusscrollbottom", this), window.addEventListener("dragup", this)  
                        }  

第一次发帖,有点激动。

0 关注 分享

要回复文章请先登录注册

s***@163.com

s***@163.com (作者)

回复 a***@126.com :
整理代码格式,代码在2501行,替换就可以
2018-11-05 09:55
s***@163.com

s***@163.com (作者)

回复 a***@126.com :
你能找到对应的代码位置吗
2018-11-05 09:51
a***@126.com

a***@126.com

代码都是乱的,复制进去没用,报错
2018-11-03 09:42