首页 > 代码库 > js scroll 兼容

js scroll 兼容

const scrollLen = window.pageYOffset
                || document.documentElement.scrollTop
                || document.body.scrollTop
                || 0;

 

js scroll 兼容