当前位置:网站首页>【无标题】(完美解决)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();
}
}
边栏推荐
猜你喜欢
STM32之串口传输结构体
持续集成/持续部署(2)Jenkins & SonarQube
[wxGlade learning] wxGlade environment configuration
训练一个神经网络要多久,神经网络训练时间过长
Detailed Explanation of the Level 5 Test Center of the Chinese Institute of Electronics (1)-string type string
QTableWidget 使用方法
【剑指offer】左旋字符串,替换空格,还有类题!!!
PowerMock for Systematic Explanation of Unit Testing
Continuous Integration/Continuous Deployment (2) Jenkins & SonarQube
Simple interaction between server and client
随机推荐
idea plugin autofill setter
无代码平台助力中山医院搭建“智慧化管理体系”,实现智慧医疗
软件定制开发——企业定制开发app软件的优势
前几天,小灰去贵州了
OAK-FFC Series Product Getting Started Guide
Adobe LiveCycle Designer 报表设计器
收集awr
最强大脑(2)
Go 语言的诞生
神经网络图怎么分析,画神经网络结构图
IPQ4019/IPQ4029 support WiFi6 MiniPCIe Module 2T2R 2×2.4GHz 2x5GHz MT7915 MT7975
MySQL select count(*) count is very slow, is there any optimization solution?
谁能解答?从mysql的binlog读取数据到kafka,但是数据类型有Insert,updata,
1.3版本自定义TrainOneStepCell报错
How to use QTableWidget
ES6: Expansion of Numerical Values
MySQL性能调优,必须掌握这一个工具!!!(1分钟系列)
Lightweight network (1): MobileNet V1, V2, V3 series
OAK-FFC系列产品上手指南
Simple interaction between server and client