html结构
<!--下拉刷新容器-->
<div id="pullrefresh" class="mui-content mui-scroll-wrapper">
<div class="mui-scroll">
<!--数据列表-->
<ul class="mui-table-view mui-table-view-chevron" id="list"></ul>
</div>
</div>
document.querySelector('.mui-scroll-wrapper' ).addEventListener('scrollstart', function (e) {
console.log('scroll');
console.log(mui('.mui-scroll-wrapper').scroll().y);
});
为什么每次scrollstart事件都打印2次数据
[LOG] : scroll
[LOG] : -9039
[LOG] : scroll
[LOG] : -9039
[LOG] : scroll
[LOG] : -9932
[LOG] : scroll
[LOG] : -9932
[LOG] : scroll
[LOG] : -10697
[LOG] : scroll
[LOG] : -10697
[LOG] : scroll
[LOG] : -11768
[LOG] : scroll
[LOG] : -11768
纯牛奶645
太棒啦
2016-11-21 16:23