UNIAPP 锚点跳转
uni.createSelectorQuery().select('#industryIndex' + id).boundingClientRect(function(rect) {console.log('rect', rect);// 使用scrollIntoView方法滚动到目标元素uni.pageScrollTo({scrollTop: rect.top,duration: 500});}).exec();
uni.createSelectorQuery().select('#industryIndex' + id).boundingClientRect(function(rect) {console.log('rect', rect);// 使用scrollIntoView方法滚动到目标元素uni.pageScrollTo({scrollTop: rect.top,duration: 500});}).exec();