小程序滚动事件,监测当前内容到顶部的距离

    /**
     * 滚动事件
     */
    onPageScroll(e) {
        var that = this;
        that.scrollTop = e.scrollTop;
        console.log(that.scrollTop)
    },

评论

暂无评论