uniapp实现下拉刷新

uniapp实现下拉刷新

  • pages.json 里面配置 "enablePullDownRefresh": true
javascript 复制代码
{
	"pages": [{
			"path": "pages/ces/index",
			"style": {
				"navigationBarTitleText": "下拉刷新测试",
				"enablePullDownRefresh": true
			}
		},
}
  • .vue 页面的 script 里面配置 onPullDownRefresh 方法
javascript 复制代码
	onPullDownRefresh(() => {
		getList()
		setTimeout(() => {
			uni.stopPullDownRefresh()
		}, 1000)
	})
相关推荐
C Yu小白几秒前
Linux系统调用与文件操作详解
linux·运维·服务器
ZFB00018 分钟前
【麒麟桌面系统】V10-SP1 2503 系统知识——常见用户组简介
linux·运维·kylin
EndingCoder22 分钟前
类的继承和多态
linux·运维·前端·javascript·ubuntu·typescript
ZFB00011 小时前
【麒麟桌面系统】V10-SP1 2503 系统知识——添加用户
linux·运维·kylin
ZFB00011 小时前
【麒麟桌面系统】V10-SP1 2503 系统知识——进入救援模式
linux·运维·kylin
RisunJan1 小时前
Linux命令-iptables-restore命令(从文件批量恢复 iptables 防火墙规则)
linux·运维·网络
hugerat3 小时前
在AI的帮助下,用C++构造微型http server
linux·c++·人工智能·http·嵌入式·嵌入式linux
ha20428941944 小时前
Linux操作系统学习记录之----自定义协议(网络计算器)
linux·网络·学习
想唱rap4 小时前
MYSQL在ubuntu下的安装
linux·数据库·mysql·ubuntu
糖~醋排骨4 小时前
DHCP服务的搭建
linux·服务器·网络