小程序监听上拉触底事件
async onReachBottom() {
const hasMore = this.isOK!==this.isLength
if(hasMore){
this.pagenum++;
const length = await this.getPageData();
this.isLength += length
console.log(length);
}else{
this.dibu = true
}
},
可以拿来做上拉分页请求