判断页面是否有滚动条

scrollTop + clientHeight >= scrollHeight   


// 滚动到当前元素所在的位置
this.$refs.el.scrollIntoView()

  

posted @ 2020-12-11 10:25  糖锡  阅读(725)  评论(0)    收藏  举报