<div class="mui-scroll-wrapper"> <div class="mui-scroll"> <!--这里放置真实显示的DOM内容--> </div> </div>然后使用下面的代码即可实时输出(模拟器好卡啊):
var scroll = mui('.mui-scroll-wrapper').scroll(); document.querySelector('.mui-scroll-wrapper' ).addEventListener('scroll', function (e ) { console.log(scroll.y); })