当前位置:网站首页>Understand the life cycle and route jump of small programs
Understand the life cycle and route jump of small programs
2022-07-25 10:55:00 【Hua Weiyun】
Catalog
One 、 Talk about wechat applet briefly
1、 In terms of structure and style
2、 When invoking wechat ecosystem functions
3、 ... and 、 Applet route jump
1. Through components navigator Jump
Preface
Wechat applet It is an application that can be used without downloading and installing , It implements the application “ Within reach ” The dream of , Users can scan or search to open the application . Also embodies “ Go as soon as you use it ” Idea , Users don't have to worry about installing too many apps . Applications will be everywhere , Ready to use , But there is no need to install or uninstall . For developers , Wechat applet development threshold is relatively low , It's not as difficult as it is APP, It can satisfy simple basic application , Suitable for life service offline shops and conversion of non rigid demand low frequency applications . Wechat applet can realize message notification 、 Offline scanning 、 Seven functions of official account number and so on . among , Official account , Users can jump between official account and wechat applet .
One 、 Wechat applet and vue contrast
1、 In terms of structure and style
2、 When invoking wechat ecosystem functions
Get geographic location information wx.getLocation、
file save wait
Two 、 Applet life cycle
- onReady Life cycle function -- Listening page first rendering completed
- onShow Life cycle function -- Monitor page display
- onHide Life cycle function -- Monitor page hidden
- onUnload Life cycle function -- Monitor page uninstall
- onPullDownRefresh Page related event handler -- Monitor user pull-down action
- onReachBottom Handling function of page pull bottom event
- onShareAppMessage Users click the top right corner to forward
- onPageScroll Handling function of page scrolling triggering event
- onTabItemTap Now it's tab When the page , Click on tab Trigger when
3、 ... and 、 Applet route jump
1. Through components navigator Jump
The code is as follows ( Example ):
2. adopt api Jump
wx.navigateTo() , wx.navigateBack(), wx.redirectTo() , wx.switchTab(), wx.reLanch()
The code is as follows ( Example ):
summary
That's what we're going to talk about today , This article simply introduces the life cycle and route jump method of wechat applet , And the vue Comparison of projects , I hope that's helpful
边栏推荐
- The most comprehensive UE4 file operation in history, including opening, reading, writing, adding, deleting, modifying and checking
- MySQL offline deployment
- 信号完整性(SI)电源完整性(PI)学习笔记(三十四)100条估计信号完整性效应的经验法则
- Research summary of voice self-monitoring pre training model CNN encoder
- js 双向链表 02
- Analysis of event channel principle in Kraken
- The idea has been perfectly verified again! The interest rate hike is approaching, and the trend is clear. Take advantage of this wave of market!
- 2021 牛客网笔试总结 01
- Trojang attack on neural networks paper reading notes
- 2021 Niuke written examination summary 02
猜你喜欢

JS collection

Redis usage scenario

Disabled and readonly and focus issues

After switching the shell command line terminal (bash/zsh), CONDA cannot be used: command not found

JS bidirectional linked list 02

ESP32C3基于Arduino框架下的 ESP32 RainMaker开发示例教程

2021 scenery written examination summary

3. Like you, DNS domain name resolution service!!!

NB-IOT控制液晶屏(日期的设置与读取)

2021 去哪儿网笔试总结
随机推荐
微波技术大作业课设-分立电容电感+微带单枝短截线+微带双枝短截线
Leetcode 560 prefix and + hash table
UE4 framework introduction
Pytoch separates tensor by the value of one dimension of tensor (simple)
String longest common prefix
The most comprehensive UE4 file operation in history, including opening, reading, writing, adding, deleting, modifying and checking
6.PXE结合Kickstart原理和配置实现无人值守自动装机
2021 京东笔试总结
DICOM medical image viewing and browsing function based on cornerstone.js
8. SHELL file processing Three Musketeers sed
JS hash table 01
【云享新鲜】社区周刊·Vol.72- 2022华为开发者大赛中国区首场开幕式启动;华为云KooMessage火热公测中…
Microwave technology homework course design - Discrete capacitance and inductance + microstrip single stub + microstrip double stub
11. Iptables firewall
Deadlock event of thread pool
HCIP(13)
AI系统前沿动态第43期:OneFlow v0.8.0正式发布;GPU发现人脑连接;AI博士生在线众筹研究主题
Multithreading - static proxy mode
微信小程序版本更新如何通知用户?
云原生IDE:iVX免费的首个通用无代码开发平台




