上拉触底判断
scrollEvent(e) {
const { scrollHeight, scrollTop, clientHeight } = e.target;
if (scrollHeight - scrollTop <= clientHeight) {
if (!this.loading) {
//处理触底具体逻辑
}
}
},
上拉触底判断
scrollEvent(e) {
const { scrollHeight, scrollTop, clientHeight } = e.target;
if (scrollHeight - scrollTop <= clientHeight) {
if (!this.loading) {
//处理触底具体逻辑
}
}
},