uniapp scroll-view的使用

1、实现滚动到底部加载数据的效果
查看官网组件详情https://uniapp.dcloud.io/component/scroll-view

<swiper>
	<swiper-item>
		<scroll-view scroll-y="true" enable-back-to-top="true" @scrolltolower="scrollToLower">
			<view></view>
		</scroll-view>
	</swiper-item>
</swiper>
export default{
    
    
	data(){
    
    
		return{
    
    
		}
	},
	methods:{
    
    
		scrollToLower:function(){
    
    
			//滑到底部加载
		}
	}
}

猜你喜欢

转载自blog.csdn.net/qq_26679989/article/details/111169860