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)
	})
相关推荐
orion575 小时前
Missing Semester Class1:course overview and introduction of shell
linux
用户1204872216111 小时前
Linux驱动编译与加载
linux·嵌入式
程序员老赵13 小时前
服务器文件不想 SFTP 上传?Docker 跑个 File Browser,浏览器就能管理
服务器·docker·开源
vivo互联网技术17 小时前
从 10 分钟到 1 秒:ES 深度分页任意跳页的三轮优化实战
服务器·数据库·redis·elasticsearch·深度分页
用户8055336980318 小时前
Input 子系统架构:Core、Handler、Driver 三层是怎么协作的
linux·嵌入式
用户8055336980318 小时前
RK-Forge外设系列开篇 - 把板子从「能启动」变成「能用」:Ethernet/SPI/MMC 三个纯接线外设
linux·github·嵌入式
七歌杜金房1 天前
我终于又有了自己的 Linux 电脑
linux·debian·mac
小徐_23331 天前
Wot UI 2.2.0 发布:Button 新增 subtle,VideoPreview 预览体验继续增强
前端·微信小程序·uni-app
tntxia2 天前
linux curl命令详解_curl详解
linux