javascript - vue2+iscroll5 cannot slide
Using Vue2 iscroll5, the initialization can be completed, but it cannot slide at all in Google Chrome mobile mode, and it slides normally in non-mobile mode.
The code that exactly follows the official example is as follows:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | <code>import IScroll from 'iscroll' ;
export default {
name: 'app' ,
data() {
return {
msg: []
}
},
mounted: function () {
this._initScroll();
},
methods: {
_initScroll() {
this.iscroll = new IScroll(this. $refs .wrap);
}
},
components: {}
}</code>
|
伊谢尔伦2794 days ago954