window.addEventListener('scroll', this.handleScroll); function handleScroll() { //判断滚动到底部 if ($(window).scrollTop() >=$(document).height() - $(window).height()) { console.log(132456) } }