scrollTopAnimate(id){
this.$nextTick(()=>{
window.scrollTo({top:document.getElementById(id).offsetTop - 138, behavior: 'smooth'})
})
}
scrollTopAnimate(id){
this.$nextTick(()=>{
window.scrollTo({top:document.getElementById(id).offsetTop - 138, behavior: 'smooth'})
})
}
本文标题:VUE 通过id 滚动到指定位置
本文链接:https://www.haomeiwen.com/subject/vpxcvltx.html
网友评论