Mui获取页面滚动距离

2019-09-19 10:31:56 浏览数 (1)

代码语言:javascript复制
var scroll = mui('.mui-scroll-wrapper').scroll();
document.querySelector('.mui-scroll-wrapper').addEventListener('scroll',function (e) {
  console.log('距离' scroll.y);
})
mui

0 人点赞