mounted(){
        this.loadlist()
        this.userlist()
        this.browserRedirect()
        window.addEventListener("scroll",this.handleFun)
},
destroyed(){
        window.removeEventListener('scroll', this.handleFun);
},
methods:{ handleFun(){
var scrollTop = document.documentElement.scrollTop || document.body.scrollTop; var windowHeight = document.documentElement.clientHeight || document.body.clientHeight; var scrollHeight = document.documentElement.scrollHeight || document.body.scrollHeight; if (scrollTop + windowHeight == scrollHeight) { this.page = this.page+1 this.loadlist() } }, }

 

相关文章:

  • 2022-12-23
  • 2022-01-14
  • 2021-12-02
  • 2021-05-26
  • 2022-12-23
  • 2022-12-23
  • 2021-11-19
猜你喜欢
  • 2021-12-08
  • 2022-12-23
  • 2022-12-23
  • 2021-10-10
  • 2021-08-28
  • 2022-12-23
相关资源
相似解决方案