Justin97
Justin97
  • 发布:2016-02-19 15:28
  • 更新:2019-11-25 11:30
  • 阅读:5493

mui 下拉刷新插件 真机无效

分类:MUI

mui.init({
pullRefresh: {
container: '#pullrefresh',
down: {
contentdown : "下拉可以刷新",//可选,在下拉可刷新状态时,下拉刷新控件上显示的标题内容
contentover: "释放立即刷新",
contentrefresh: "正在刷新...",
callback: pulldown_Refresh
},
up: {
contentrefresh: '正在加载...',
contentnomore:'没有更多数据了',
callback: pullupRefresh
}
},
});
在浏览器上可以触发down中的pulldown_Refresh方法,但是模拟器和真机是无效的,是不是一定要使用pullToRefresh.js的方法或者分开成父子页面来完成?

求解

2016-02-19 15:28 负责人:无 分享
已邀请:
乐乐8890

乐乐8890

同样的问题

手机型号:Sony m35t
版本:android 4.1.2

mui 2.8 下拉刷新失败 上拉正常 用的咱们的示例代码

大男人主义

大男人主义 - 前端开发者

下拉刷新 安卓机上需要双webview 才可以.
苹果上没问题,但是到底有没问题我也不知道 我木有苹果机 哈哈

  • AlvinChim

    怎么回事?如果苹果和安卓同一套代码怎么解决。。


    2016-03-17 14:28

7***@qq.com

7***@qq.com

请问这个问题解决了吗

  • Justin97 (作者)

    没有解决,换了另外一种做法


    2016-11-25 12:12

1***@qq.com

1***@qq.com

mui.init({
pullRefresh: {
container: '#pullrefresh',
down: {
style:'circle',
callback: pulldownRefresh
},
up: {
auto:true,
contentrefresh: '正在加载...',
contentnomore: '没有更多数据了',
callback: pullupRefresh
}
}
});

重点style:'circle',

debugger

debugger - 前端菜鸟

我也遇到了同样的问题

1***@qq.com

1***@qq.com

我有好方法,在mui.min.js中搜索mui.init pulldownRefresh,然后将if ($.os.plus && $.os.android)这行的android改成windows或其他任意无效值,再搜索pullRefresh 5+,将if (!($.os.plus && $.os.android))中的android改成windows或是其他任意无效值。好了,世界和平了。官方说的,android的单webview模式跟ios有区别,这么改是不管android还是ios,全部使用div动画。

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