Uncaught (in promise) TypeError: Cannot read property 'on' of undefined
at VueComponent._initScroll (eval at (app.js:750), :65:20)
at VueComponent.eval [as _initScroll] (eval at (app.js:594), :216:72)
at VueComponent.eval (eval at (app.js:750), :49:12)
at Array.func (eval at (app.js:594), :491:10)
at nextTickHandler (eval at (app.js:594), :447:16)
在使用better-scroll的时候,出现这个错误。请问老师这个是怎么解决的呢?
报错的是这一行。
this.foodScroll = new BScroll(this.$els.foodsWrapper, {
probeType: 3
});
Uncaught (in promise) TypeError: Cannot read property 'on' of undefined at VueComponent._initScroll (eval at (app.js:750), :65:20)
at VueComponent.eval [as _initScroll] (eval at (app.js:594), :216:72)
at VueComponent.eval (eval at (app.js:750), :49:12)
at Array.func (eval at (app.js:594), :491:10)
at nextTickHandler (eval at (app.js:594), :447:16)
在使用better-scroll的时候,出现这个错误。请问老师这个是怎么解决的呢? 报错的是这一行。 this.foodScroll = new BScroll(this.$els.foodsWrapper, { probeType: 3 });