慕云
慕云
  • 发布:2015-08-15 23:51
  • 更新:2017-11-30 13:48
  • 阅读:2108

Mui v2.2.0 pullrefresh中_initPullupRefresh报错

分类:MUI
mui

错误提示:Uncaught TypeError: Cannot read property 'classList' of undefined at js/mui.js:3049
mui.js代码:

_initPullupRefresh: function() {
this.pulldown = false;
this.pullPocket = this.bottomPocket;
this.pullPocket.classList.add(CLASS_BLOCK);//错误指向这一行
this.pullPocket.classList.add(CLASS_VISIBILITY);
this.pullCaption = this.bottomCaption;
this.pullLoading = this.bottomLoading;
}

2015-08-15 23:51 负责人:无 分享
已邀请:
r***@163.com

r***@163.com

this.bottomPocket == null

ccjuice

ccjuice

请问怎么解决的

ccjuice

ccjuice

.plusready()内又用了.ready()方法,一般来说基座就绪是在页面之后的,不知道为什么偶尔会有页面没就绪的情况,所以加了双保险,解决了refresh组件初始化失败的问题。

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