小程序scroll-view自动滚动到最下面

<scroll-view scroll-y style="height:500px;" scroll-top='{{scrolltop}}'>

</scroll-view>

必须设置固定的height(高度),然后在js里设置scroll-top值大于高度就行了,

(更新得时候可以赋值为数组得长度乘以100)类似这样:

效果肯定是可以达到

猜你喜欢

转载自blog.csdn.net/weixin_38364109/article/details/81562409
今日推荐