better-scroll一个好用的页面滑动工具

1.npm install better-scroll
 
2.引入:import BetterScrol from 'better-scroll'
3. 在需要设置页面滚动的地方添加 ref="xxx" 用来操作dom
4.定义方法: 
5.在请求数据完成之后调用该方法
原文地址:https://www.cnblogs.com/huanhuan55/p/9721305.html