better-scroll报这个错:Cannot read property 'children' of undefined
来源:

蓝with黑
2016-12-31
(program):1 Uncaught (in promise) TypeError: Cannot read property 'children' of undefined(…)
打印this.$els.seller是有的,为什么还会报这个错呢?
商家页报这个错,评论页没有报错,但是都不能实现滑动。
这是哪里写错了?找不到原因,求指导。
写回答
2回答
-
看看是不是没有在 $nextTick 后初始化 scroll,有一种原因是 dom 还没渲染就初始化 scroll 了~
032017-05-09 -
我就是那个胖子
2017-05-09
这个问题怎么解决呢
022018-05-23
相似问题