当前位置:网站首页>Applet lifecycle
Applet lifecycle
2022-04-21 10:48:00 【Summer thought】
When the applet is registered , Loading page , Trigger onLoad Method , A page can only be called once .
2、 Trigger after page loading onShow Method , Display page , Called every time a page is opened .
3、 Show page for the first time , Will trigger onReady Method , Render page elements and styles , A page can only be called once .
4、 When the applet runs in the background or jumps to another page , Trigger onHide Method .
5、 When the applet has background access to the foreground to run or re-enter the page , Trigger onShow Method .
6、 When using the redirect method wx.redirectTo(OBJECT) Or close the current page to return to the previous page wx.navigateBack(), Trigger onUnload
wx.navigateTo Jump state , page A And page B Life cycle logic of
1、 Get into A page :A perform onLoad()–>onShow()–>onReady();
2、A page navigateTo B page :A perform onHide(),B perform onLoad()–>onShow()–>onReady();
3、B Page back A page :B perform onUnload(),A perform onShow();
4、 sign out A page :A perform onUnload().
版权声明
本文为[Summer thought]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204211037365102.html
边栏推荐
猜你喜欢

Runhe Dayu learning program

Vulnhub PRIME: 1

活动精彩预告 | 维塔士+龙智:数字化打造游戏行业「头号玩家」

Showcase时手机不够怎么办? 云真机平台atxserver2

TypeError: The view function did not return a valid response. The function either returned None 的解决

WeChat official account web page sharing settings and problems

IDEA和PyCharm启动时进入欢迎界面

AcWing 1725. 组队井字游戏(枚举)

MySQL in-depth study (30): database design specification

O2OA二次开发-使用开源平台搭建完整OA(3)-开发企业报销审批
随机推荐
8通道CAN FD,更强大的数据记录仪GL3400
Talk about your GC tuning ideas?
Can Jingdong Logistics, ririshun supply chain and Shunfeng find the optimal solution of logistics under the "epidemic"?
"Air washing" meets the iteration again, and the imitator has a new goal
Openshift 4 - improve client access API server security
使用对数器验证简单排序
基于润和大禹开发板的导购系统路线详解
TypeError: The view function did not return a valid response. The function either returned none
伦敦金在哪里开户安全?
Browser plug-in (BD new tab) wallpaper appreciation
torch. autograd. Function customization
Asterisk源码解读(一:基础介绍与chan_sip代码分析)
Zsh: segmentation fault solution
现代精算风险理论07:风险度量
Recursive function C language question type
Théorie moderne du risque actuariel 07: mesure du risque
Go uses channel for synchronization (channel 1)
Map与JsonObject区别
Six practices of Windows operating system security attack and defense
微信公众号网页分享设置及问题