//引入
mui.min.css
mui.min.js
//body
<div class="mui-scroll-wrapper">
<div class="mui-scroll">
</div>
</div>
//js
mui('.mui-scroll-wrapper').scroll({
deceleration: 0.0005 //flick 减速系数,系数越大,滚动速度越慢,滚动距离越小,默认值0.0006
});
//引入
mui.min.css
mui.min.js
//body
<div class="mui-scroll-wrapper">
<div class="mui-scroll">
</div>
</div>
//js
mui('.mui-scroll-wrapper').scroll({
deceleration: 0.0005 //flick 减速系数,系数越大,滚动速度越慢,滚动距离越小,默认值0.0006
});
转载于:https://www.cnblogs.com/yyy251/p/9037100.html