当前位置:网站首页>[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
边栏推荐
猜你喜欢
Accès aux données - intégration du cadre d'entité
国产芯片产业链两条路齐头并进,ASML真慌了而大举加大合作力度
中间表是如何被消灭的?
【刷题篇】鹅厂文化衫问题
If you can't afford a real cat, you can use code to suck cats -unity particles to draw cats
"21 days proficient in typescript-3" - install and build a typescript development environment md
深潜Kotlin协程(二十一):Flow 生命周期函数
Iphone14 with pill screen may trigger a rush for Chinese consumers
HiEngine:可媲美本地的云原生内存数据库引擎
数据访问 - EntityFramework集成
随机推荐
养不起真猫,就用代码吸猫 -Unity 粒子实现画猫咪
Apple 已弃用 NavigationView,使用 NavigationStack 和 NavigationSplitView 实现 SwiftUI 导航
[echart] resize lodash to realize chart adaptation when window is zoomed
China Radio and television officially launched 5g services, and China Mobile quickly launched free services to retain users
[729. My Schedule i]
Sentinel-流量防卫兵
【刷题篇】有效的数独
机器学习编译第2讲:张量程序抽象
scratch五彩糖葫芦 电子学会图形化编程scratch等级考试三级真题和答案解析2022年6月
Jarvis OJ simple network management protocol
[echart] resize lodash 实现窗口缩放时图表自适应
Basic introduction to the control of the row component displaying its children in the horizontal array (tutorial includes source code)
Explain in detail the functions and underlying implementation logic of the groups sets statement in SQL
[深度学习][原创]让yolov6-0.1.0支持yolov5的txt读取数据集模式
Excuse me, is the redis syntax used in DMS based on the commands of the redis community version of the cloud database
【剑指 Offer】61. 扑克牌中的顺子
Hiengine: comparable to the local cloud native memory database engine
tf. sequence_ Mask function explanation case
Dare not buy thinking
详解SQL中Groupings Sets 语句的功能和底层实现逻辑