this.$refs.content.offsetHeight 整个高度
this.$refs.content.offsetTop 距离上层父元素顶部的空间高度
this.$refs.content.clientHeight 内容可视区域的高度
this.$refs.content.scrollTop 滚动条拉动的距离.
局部滚动显示回到底部
this.$refs.content.addEventListener("scroll", () => {
let scrollTop = this.$refs.content.scrollTop; // 滚动条拉动的距离.
let hei = content总高度 - this.$refs.content.clientHeight; // 滚动条滚至最底部
let hei2 = hei - this.$refs.task.offsetHeight; // 滚动条滚至任务开始时的滚动高度
if(scrollTop<hei2){
this.isShowToLink = true;
}else{
this.isShowToLink = false;
}
});