复制代码<div class="mui-content">
<div id="slider" class="mui-slider mui-fullscreen">
<div class="mui-scroll-wrapper">
<div class="mui-scroll" id="testscroll">
<!--<ul class="mui-table-view">
</ul>-->
<p class="testp">fewajfweofaj waeofjowaeof wajoef jwaeofj oweafow e22222222222222222aofiwj eaofjwaoejfowaefowoeafj woeafjwiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiejfojwoefjwoiejfwef</p>
</div>
</div>
</div>
</div>
<script type="text/javascript">
mui.plusReady(function() {
mui('.mui-scroll-wrapper').scroll({bounce: true, indicators: true});
mui("#testscroll").pullRefresh({
down: {
callback: function() {
var self = this;
console.log("下拉刷新");
setTimeout(function() {
self.endPulldownToRefresh();
}, 1000);
}
},
up: {
callback: function() {
var self = this;
console.log("上拉刷新");
setTimeout(function() {
self.endPullupToRefresh();
}, 1000);
}
}
});
});
</script>
上是源码,实现一个简单的文本拖动显示,我下面注册pullRefresh实现以后,然后就不能正常拖动了,一拖动就是调用上拉回调,如果把 注册pullRefresh 去掉以后,一切都是正常的,有人遇到过吗?
0 个回复