0
点赞
收藏
分享

微信扫一扫

uni-app,微信小程序 点击返回顶部过渡动画

ZGtheGreat 2022-03-22 阅读 81
<button type="primary" @click="tapscroll">回到顶部</button>

js代码

tapscroll:function(){
	uni.pageScrollTo({
	scrollTop: 0,
	duration: 300
	})
}
举报

相关推荐

0 条评论