当前位置:网站首页>[wechat applet] read the life cycle and route jump of the applet
[wechat applet] read the life cycle and route jump of the applet
2022-07-05 16:56: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
边栏推荐
- 【剑指 Offer】62. 圆圈中最后剩下的数字
- Jarvis OJ simple network management protocol
- Raspberry pie 4B installation pytorch1.11
- Can you help me see what the problem is? [ERROR] Could not execute SQL stateme
- Jarvis OJ shell traffic analysis
- DenseNet
- Writing method of twig array merging
- 2020-2022 two-year anniversary of creation
- Benji Banas membership pass holders' second quarter reward activities update list
- scratch五彩糖葫芦 电子学会图形化编程scratch等级考试三级真题和答案解析2022年6月
猜你喜欢

【机器人坐标系第一讲】
![[deep learning] how does deep learning affect operations research?](/img/d8/a367c26b51d9dbaf53bf4fe2a13917.png)
[deep learning] how does deep learning affect operations research?

【组队 PK 赛】本周任务已开启 | 答题挑战,夯实商品详情知识

如何将mysql卸载干净

Enter a command with the keyboard

文件操作--I/O

Hiengine: comparable to the local cloud native memory database engine

Explain in detail the functions and underlying implementation logic of the groups sets statement in SQL

Jarvis OJ simple network management protocol

The two ways of domestic chip industry chain go hand in hand. ASML really panicked and increased cooperation on a large scale
随机推荐
Timestamp strtotime the day before or after the date
时间戳strtotime前一天或后一天的日期
[es6] add if judgment or ternary operator judgment in the template string
Summary of methods for finding intersection of ordered linked list sets
数据访问 - EntityFramework集成
Desci: is decentralized science the new trend of Web3.0?
tf. sequence_ Mask function explanation case
Jarvis OJ Webshell分析
Deep dive kotlin synergy (XXI): flow life cycle function
Twig数组合并的写法
【组队 PK 赛】本周任务已开启 | 答题挑战,夯实商品详情知识
The difference between searching forward index and inverted index
[echart] resize lodash 实现窗口缩放时图表自适应
Learnopongl notes (II) - Lighting
Basic introduction to the control of the row component displaying its children in the horizontal array (tutorial includes source code)
2020-2022两周年创作纪念日
【机器人坐标系第一讲】
中国广电正式推出5G服务,中国移动赶紧推出免费服务挽留用户
国内首家 EMQ 加入亚马逊云科技「初创加速-全球合作伙伴网络计划」
Etcd 构建高可用Etcd集群



