模仿网站,不同代码做的网站后期维护情况,网站建设相关标准,网站栏目下拉菜单开启页面的下拉刷新,注意这个不是可滚动视图的下拉刷新.
一般页面建议使用页面外的,不要使用scroll-view里面的下拉刷新.
pages:
pages: [ {path: pages/index/index,style: {navigationBarTitleText: 首…开启页面的下拉刷新,注意这个不是可滚动视图的下拉刷新.
一般页面建议使用页面外的,不要使用scroll-view里面的下拉刷新.
pages:
pages: [ {path: pages/index/index,style: {navigationBarTitleText: 首页,enablePullDownRefresh:true,//下拉刷新必须配置该参数onReachBottomDistance:100,//距离底部100像素时触发加载更多功能}}
]js:
script langts setupimport { onPullDownRefresh , onReachBottom } from dcloudio/uni-apponPullDownRefresh(() {console.log(下拉刷新)})onReachBottom(() {console.log(上拉加载更多)})
/script常用代码:
关闭下拉刷新: uni.stopPullDownRefresh(); 链接:
uni-app中vue3setup实现下拉刷新、上拉加载更多效果_uni-app_2019ab-Vue