uniapp页面滚动到页面可指定位置

时间:2020-05-08 11:31:38   收藏:0   阅读:1040
				uni.createSelectorQuery().select("#submit").boundingClientRect(function(res){
					console.log("标签获取====>",typeof(res.top))
					uni.pageScrollTo({
					    scrollTop:res.top,
					    duration: 300
					});
				}).exec()

uni节点选择器资料
uni的页面滚动

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!