当前位置:网站首页>【无标题】(完美解决)uni-app 小程序下拉刷新后刷新图标无法正常恢复的问题
【无标题】(完美解决)uni-app 小程序下拉刷新后刷新图标无法正常恢复的问题
2022-08-11 09:37:00 【Web项目开发】
uni-app下拉刷新后刷新条无法正常恢复的问题
完美解决方案
1.pages.json 配置 “enablePullDownRefresh”: true
"pages": [
{
"path": "pages/index/index",
"style": {
"navigationBarTitleText": "下拉刷新",
"enablePullDownRefresh": true //下拉刷新配置页面中生效
}
}
]
2.index页面中
//下拉刷新-->配合uni.stopPullDownRefresh();
onPullDownRefresh() {
this.loadData();
}
methods: {
//loadData 方法中停止 下拉刷新
loadData(){
uni.stopPullDownRefresh();
}
}
边栏推荐
- HDRP shader gets pixel depth value and normal information
- YTU 2297: KMP pattern matching three (string)
- Typescrip编译选项
- 大家有遇到这种错吗?flink-sql 写入 clickhouse
- canvas文字绘制(大小、粗体、倾斜、对齐、基线)
- 游戏服务器中集群网关的设计
- HStreamDB v0.9 发布:分区模型扩展,支持与外部系统集成
- 利用mindspore下面mindzoo里面的yolov3-darknet53进行目标识别,模型训练不收敛
- Network model (U - net, U - net++, U - net++ +)
- mysql中查询多个表中的数据量
猜你喜欢

Three handshakes and four waves

神经痛分类图片大全,神经病理性疼痛分类

STM32之串口传输结构体
MySQL select count(*) count is very slow, is there any optimization solution?

WordpressCMS主题开发01-首页制作

How to analyze the neural network diagram, draw the neural network structure diagram

HDRP shader gets pixel depth value and normal information

Segmentation Learning (loss and Evaluation)

数字钱包红海角逐,小程序生态快速引入可助力占领智慧设备入口

IPQ4019/IPQ4029 support WiFi6 MiniPCIe Module 2T2R 2×2.4GHz 2x5GHz MT7915 MT7975
随机推荐
HDRP shader 获取阴影(Custom Pass)
仙人掌之歌——大规模高速扩张(1)
关于ts中的指针问题call,bind, apply
Huawei WLAN Technology: AC/AP Experiment
HDRP shader to get shadows (Custom Pass)
1.3版本自定义TrainOneStepCell报错
期货开户最低的是交易所手续费不加佣金
自定义卷积核的分组转置卷积如何实现?
oracle使用online_catalog收集数据,想看下online_catalog模式修改表字
2022-08-09 顾宇佳 学习笔记
Primavera Unifier - AEM Form Designer Essentials
Simple interaction between server and client
Birth of the Go language
单元测试系统化讲解之PowerMock
卷积神经网络梯度消失,神经网络中梯度的概念
WordpressCMS主题开发01-首页制作
Adobe LiveCycle Designer report designer
What is the difference between the qspi interface and the ordinary four-wire SPI interface?
数据库基础
数据中台方案分析和发展方向