//监听滚动条
var scroll = mui('div#pullrefresh.mui-content.mui-scroll-wrapper').scroll();
document.getElementById('pullrefresh').addEventListener('scroll', function (e) {
mui('div#pullrefresh.mui-scroll-wrapper').scroll().reLayout();
});
var scrollPos=scroll.y;
mui('div#pullrefresh').pullRefresh().scrollTo(0, scrollPos);
或
mui('div#pullrefresh').scroll().scrollTo(1, scrollPos);
出现位置不准确 还有再滚动时会跳到顶部
0 个回复