参考链接:/yck123/p/10978941.html
@scroll实现 首先有滚动条的div一定要设固定高度,然后overflow:auto;出现滚动条 passive是使滚动更加流畅,减少卡顿,
<div id="my" @scroll.passive="getScroll($event)"></div>
getScroll(event) {// 滚动条距离底部的距离scrollBottomlet scrollBottom =event.target.scrollHeight -event.target.scrollTop -event.target.clientHeight;// if (this.finished && scrollBottom < 40) {// 操作// }},