uniapp页面滚动到页面可指定位置
uni.createSelectorQuery().select("#submit").boundingClientRect(function(res){
console.log("标签获取====>",typeof(res.top))
uni.pageScrollTo({
scrollTop:res.top,
duration: 300
});
}).exec()
uni.createSelectorQuery().select("#submit").boundingClientRect(function(res){
console.log("标签获取====>",typeof(res.top))
uni.pageScrollTo({
scrollTop:res.top,
duration: 300
});
}).exec()