mounted(){
      window.addEventListener('scroll',this.handleScroll,true)
    },
    methods:{
      handleScroll(e){
       	var scrollTop = document.documentElement.scrollTop || document.body.scrollTop
       	console.log(scrollTop )
      }
    }
Logo

前往低代码交流专区

更多推荐