问题描述:
下拉刷新在手机上不会自动回弹, 开发工具可以
解决办法:
主动调用 wx.stopPullDownRefresh
- /**
- * 页面相关事件处理函数 -- 监听用户下拉动作
- */
- onPullDownRefresh: function () {
- console.log('onPullDownRefresh')
- // 3 秒模拟数据加载
- setTimeout(function () {
- // 不加这个方法真机下拉会一直处于刷新状态, 无法复位
- wx.stopPullDownRefresh()
- }, 3000)
- }
- .
来源: http://www.bubuko.com/infodetail-3111367.html