乐乐8890
乐乐8890
  • 发布:2016-03-15 13:02
  • 更新:2016-03-15 14:45
  • 阅读:4623

TypeError: Cannot read property 'classList' of undefined" mui.min.js (7)

分类:MUI

[Web浏览器] "Uncaught TypeError: Cannot read property 'classList' of undefined" /wwwtestnew/js/Shared/mui.min.js (7)

	_initPullupRefresh: function() {  
					this.pulldown = !1, this.pullPocket = this.bottomPocket, this.pullPocket.classList.add(o), this.pullPocket.classList.add(q), this.pullCaption = this.bottomCaption, this.pullLoading = this.bottomLoading  
				},
2016-03-15 13:02 负责人:无 分享
已邀请:
乐乐8890

乐乐8890 (作者)

具体错误在 mui.min.js```javascript

_initPullupRefresh: function() {  
				this.pulldown = !1, this.pullPocket = this.bottomPocket, this.pullPocket.classList.add(o), this.pullPocket.classList.add(q), this.pullCaption = this.bottomCaption, this.pullLoading = this.bottomLoading  
			},  
			},
Danny

Danny - QQ125904483

  • 乐乐8890 (作者)

    不是兼容性问题,是使用了下拉刷新后出的提示


    2016-03-15 14:06

乐乐8890

乐乐8890 (作者)

不是 classlist 的兼容问题,是在使用了下拉刷新的页面,才报这样的错,但demo的下拉刷新页不报这个错误

DCloud_UNI_FXY

DCloud_UNI_FXY

下拉刷新初始化需要时间,你刚好在下拉刷新还没初始化的时候就调用了,把你的调用延迟执行以下,或者配置auto:true,可以自动执行一次刷新

  • ccjuice

    你好 ios设置auto:true有时候失效,请问刷新组件初始化会存在问题吗 错误指向这一行:this.pullPocket.classList.add(CLASS_BLOCK); 错误提示为undefined is not an object (evaluating 'this.pullPocket.classList') 为什么组件里的pullPocket没有存在呢


    2017-11-10 14:07

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