当前位置:网站首页>[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
边栏推荐
- Can you help me see what the problem is? [ERROR] Could not execute SQL stateme
- 2020-2022 two-year anniversary of creation
- How to install MySQL
- 采用药丸屏的iPhone14或引发中国消费者的热烈抢购
- Jarvis OJ simple network management protocol
- ECU简介
- What is the difference between EDI license and ICP business license
- Hiengine: comparable to the local cloud native memory database engine
- C# TCP如何设置心跳数据包,才显得优雅呢?
- Android 隐私沙盒开发者预览版 3: 隐私安全和个性化体验全都要
猜你喜欢
Explain in detail the functions and underlying implementation logic of the groups sets statement in SQL
养不起真猫,就用代码吸猫 -Unity 粒子实现画猫咪
拷贝方式之DMA
Jarvis OJ Webshell分析
[deep learning] how does deep learning affect operations research?
How was the middle table destroyed?
Iphone14 with pill screen may trigger a rush for Chinese consumers
Accès aux données - intégration du cadre d'entité
How does win11 change icons for applications? Win11 method of changing icons for applications
Jarvis OJ shell流量分析
随机推荐
WSL2.0安装
scratch五彩糖葫芦 电子学会图形化编程scratch等级考试三级真题和答案解析2022年6月
搜索 正排索引 和 倒排索引 区别
时间戳strtotime前一天或后一天的日期
Keras crash Guide
Spring Festival Limited "forget trouble in the year of the ox" gift bag waiting for you to pick it up~
数据访问 - EntityFramework集成
深耕5G,芯讯通持续推动5G应用百花齐放
浏览器渲染原理以及重排与重绘
【刷题篇】鹅厂文化衫问题
The difference between searching forward index and inverted index
手机开证券账户安全吗?怎么买股票详细步骤
如何将mysql卸载干净
[brush questions] effective Sudoku
Copy mode DMA
国内首家 EMQ 加入亚马逊云科技「初创加速-全球合作伙伴网络计划」
How to install MySQL
【机器人坐标系第一讲】
解决CMakeList find_package找不到Qt5,找不到ECM
美国芯片傲不起来了,中国芯片成功在新兴领域夺得第一名