vue in the scroll event does not work

 mounted() {
            window.addEventListener("scroll", function (e) {
                console.log(e);
            },true);
        },

scroll event is bound to the body, if the page is not rolling rolling body, but he's a subset of the set overflow: sroll of i case, you can open the event captured on the binding, so that you can listen to a subset of scroll event

Guess you like

Origin www.cnblogs.com/taokele/p/11925990.html