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

				uni.createSelectorQuery().select("#submit").boundingClientRect(function(res){
					console.log("标签获取====>",typeof(res.top))
					uni.pageScrollTo({
					    scrollTop:res.top,
					    duration: 300
					});
				}).exec()

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

原文地址:https://www.cnblogs.com/shiazhen/p/12849378.html