当前位置:首页 > 小程序 > 正文内容

小程序页面开启下拉刷新不回弹问题

tigon4年前 (2021-07-02)小程序3410

onPullDownRefresh: function () {
// 停止下拉动作
wx.stopPullDownRefresh(); //添加这句就可以了
if(this.data.searchContent){
this.setSearchListDataFn(this.data.searchContent)
}
},

版权声明:本文由Web学习之路发布,如需转载请注明出处。

本文链接:https://www.webge.net/?id=126

“小程序页面开启下拉刷新不回弹问题” 的相关文章

小程序-- wx.switchTab({url}) 跳转页面

wx.switchTab({url}) 传页面page地址 注意,页面会刷新,那下面导航如何选中呢? 1,在app.js里定义全局变量 globalData: { selected: 0, }, 2,每个页面引入全局变量 getApp().globalData.se...

小程序自定义下拉刷新

<scroll-view style='height:100%' scroll-y='{{!isindrag}}' bindscroll='scorll'> <view class='column' bindtouc...

小程序验证插件的使用 WxValidate

整个文件可以到git下载 import WxValidate from ‘../../utils/WxValidate’;地址自己根据目录正确引入 我的需求是所有数据都是动态后台返回的以下是使用 onload:function(){ this.initValidate()//验证规则...

小程序接地图

小程序接地图

longitude latitude是中心经纬度markers 是所有打点的经纬度,微信地图也是包了高德地图 <map wx:if="{{mapShow}}" class="map" id="map" scale="...

主动打开手机定位功能

export function getLocationListener(){ return new Promise((resolve, reject) => { var that = this wx.openSetting({ success(res){...