当前位置:网站首页>[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
waitTwo 、 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
边栏推荐
- Games101 notes (III)
- The two ways of domestic chip industry chain go hand in hand. ASML really panicked and increased cooperation on a large scale
- Writing method of twig array merging
- Domestic API management artifact used by the company
- 深耕5G,芯讯通持续推动5G应用百花齐放
- 【剑指 Offer】61. 扑克牌中的顺子
- 【刷题篇】有效的数独
- It is forbidden to copy content JS code on the website page
- 怎样在电脑上设置路由器的WiFi密码
- 关于new Map( )还有哪些是你不知道的
猜你喜欢
Flet教程之 11 Row组件在水平数组中显示其子项的控件 基础入门(教程含源码)
Iphone14 with pill screen may trigger a rush for Chinese consumers
[61dctf]fm
国内首家 EMQ 加入亚马逊云科技「初创加速-全球合作伙伴网络计划」
scratch五彩糖葫芦 电子学会图形化编程scratch等级考试三级真题和答案解析2022年6月
普洛斯数据中心发布DC Brain系统,科技赋能智慧化运营管理
"21 days proficient in typescript-3" - install and build a typescript development environment md
[61dctf]fm
Jarvis OJ Flag
2020-2022两周年创作纪念日
随机推荐
Spring Festival Limited "forget trouble in the year of the ox" gift bag waiting for you to pick it up~
【刷题篇】鹅厂文化衫问题
tf. sequence_ Mask function explanation case
tf.sequence_mask函数讲解案例
"21 days proficient in typescript-3" - install and build a typescript development environment md
文件操作--I/O
Oneforall installation and use
Android 隐私沙盒开发者预览版 3: 隐私安全和个性化体验全都要
如何将mysql卸载干净
【剑指 Offer】66. 构建乘积数组
Basic introduction to the control of the row component displaying its children in the horizontal array (tutorial includes source code)
Flet教程之 11 Row组件在水平数组中显示其子项的控件 基础入门(教程含源码)
搜索 正排索引 和 倒排索引 区别
二叉树相关OJ题
[深度学习][原创]让yolov6-0.1.0支持yolov5的txt读取数据集模式
Pspnet | semantic segmentation and scene analysis
WSL2.0安装
Explain in detail the functions and underlying implementation logic of the groups sets statement in SQL
What is the difference between EDI license and ICP business license
【剑指 Offer】63. 股票的最大利润