3***@qq.com
3***@qq.com
  • 发布:2016-10-10 16:53
  • 更新:2016-10-10 17:00
  • 阅读:7905

mui app中上下拉刷新 无法滑动

分类:MUI

mui.init({
pullRefresh: {
container: '#pullrefresh',
down: {
callback: pulldownRefresh
},
up: {
contentrefresh: '正在加载...',
callback: pullupRefresh
}
}
});

我没用webview web上是能上下滑动刷新的, app上就不能滑动, 发现是上面init初始化导致的,去掉就能滑动。 app下上下拉刷新就只能用webview吗???

2016-10-10 16:53 负责人:无 分享
已邀请:
Trust

Trust - 少说废话

Android和iOS上的处理是不同的,mui进行了封装,建议使用webview模式的。
下拉刷新

  • 3***@qq.com (作者)

    android不用webview能实现吗? 主要是web都没用webview现在要转成app 如果用webview页面全都得改。。。

    2016-10-10 18:07

  • Trust

    回复 3***@qq.com:参考http://dcloud.io/hellomui/examples/pullrefresh_with_tab.html中的实现所使用的JS。

    2016-10-10 18:08

  • 3***@qq.com (作者)

    回复 Trust:我用了那个js 但禁止上拉加载怎么写呢? mui自带的写endPullUpToRefresh(true)就可以,这个怎么写?

    2016-10-10 19:25

该问题目前已经被锁定, 无法添加新回复