错误提示: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
- 更新:2017-11-30 13:48
- 阅读:2271
3 个回复
r***@163.com
this.bottomPocket == null
ccjuice
请问怎么解决的
ccjuice
.plusready()内又用了.ready()方法,一般来说基座就绪是在页面之后的,不知道为什么偶尔会有页面没就绪的情况,所以加了双保险,解决了refresh组件初始化失败的问题。