当前位置:网站首页>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
边栏推荐
- 3.跟你思想一样DNS域名解析服务!!!
- 异步Servlet在转转图片服务的实践
- Google Earth Engine——统计逐年土地分类的频率
- 2021 qunar written examination summary
- What is the meaning of ordinary people's life?
- Gan, why '𠮷 𠮷'.Length== 3 ??
- 微波技术大作业课设-分立电容电感+微带单枝短截线+微带双枝短截线
- HCIP实验(03)
- Visual thematic map of American airport go style: ArcGIS Pro version
- Install MySQL database version 5.7.29 under ubuntu20.04 system
猜你喜欢

美国机场围棋风格可视化专题图:ArcGIS Pro版本

Flask框架——flask-caching缓存

我,AI博士生,在线众筹研究主题

2021 牛客网笔试总结 02

湖仓一体电商项目(二):项目使用技术及版本和基础环境准备

JS hash table 01

UE4 quickly find the reason for packaging failure

100W了!

微波技术大作业课设-分立电容电感+微带单枝短截线+微带双枝短截线

Hucang integrated e-commerce project (II): project use technology, version and basic environment preparation
随机推荐
【云享新鲜】社区周刊·Vol.72- 2022华为开发者大赛中国区首场开幕式启动;华为云KooMessage火热公测中…
Leetcode 560 prefix and + hash table
UE4 quickly find the reason for packaging failure
微信小程序版本更新如何通知用户?
HCIA实验(08)
DHCP configuration (take Huawei ENSP as an example)
After switching the shell command line terminal (bash/zsh), CONDA cannot be used: command not found
HCIA实验(10)NAT
ESP32C3基于Arduino框架下的 ESP32 RainMaker开发示例教程
Analysis of event channel principle in Kraken
信号完整性(SI)电源完整性(PI)学习笔记(三十四)100条估计信号完整性效应的经验法则
redis 哨兵,高可用的执行者
AI技术栈太庞大!吴恩达给出职业生涯规划:终生学习
数字孪生万物可视 | 联接现实世界与数字空间
Google Earth Engine——统计逐年土地分类的频率
云原生IDE:iVX免费的首个通用无代码开发平台
UE4 collision
js 哈希表 01
6. Regular expression of shell
HCIA实验(09)




