当前位置:网站首页>uniapp 微信小程序返回上一页并刷新
uniapp 微信小程序返回上一页并刷新
2022-06-30 06:03:00 【杜蜜月】
const callBack = () => {
let pages = getCurrentPages(); // 页面栈
let beforePage = pages[pages.length - 2]; // 上一页
uni.navigateBack({
success: () => {
beforePage.onLoad(beforePage.options); // 执行上一页的onLoad方法
}
});
}
边栏推荐
- Ten years' miscellaneous thoughts
- Create uiactionsheet [duplicate] - creating uiactionsheet [duplicate]
- Dao -- a beautiful new world?
- Zibll子比主题V6.4.1wordpress 开心版源码下载_破解原版/直接使用/无需教程
- Attempt to redefine 'timeout' at line 2 solution
- ES6扩展运算符(...)
- Implementation of property management system with ssm+ wechat applet
- 10-【istio】istio Sidecar
- One sentence introduction to Trojan horse
- Develop stylelint rules from zero (plug-ins)
猜你喜欢

Projet Web de déploiement du serveur Cloud

Codeforces B. MEX and Array

Common NPM install errors

How does WPS cancel automatic numbering? Four options

Talking about the struct of go

STM32F103系列控制的OLED IIC 4针

MySQL高级SQL语句

Application of redis client list in practice
![[OSPF] comparison between rip and OSPF](/img/72/00e3a05bc5de0e5a66b4675d030911.jpg)
[OSPF] comparison between rip and OSPF

At the age of 32, I fell into a middle-aged crisis and finally quit naked...
随机推荐
雲服務器部署 Web 項目
583. 两个字符串的删除操作-动态规划
Lantern Festival | maoqiu technology and everyone "guess riddles and have a good night"
Mariadb数据库的安装与初始化
Intelligent question - horse racing question
Codeforces C. Andrew and Stones
Here comes the nearest chance to Ali
[openstack]-01- basic introduction
Develop stylelint rules from zero (plug-ins)
Xctf attack and defense world crypto advanced area
OSPF - authentication and load balancing summary (including configuration commands)
Tornado frame foundation
MySQL存储系统
Who doesn't want a blog site of their own - build a blog site WordPress
云服务器部署 Web 项目
Leader: who can use redis expired monitoring to close orders and get out of here!
PC viewing WiFi password
IP TCP UDP network encryption suite format
Several commands not commonly used in MySQL
Use of tornado template