当前位置:网站首页>[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
边栏推荐
- 文件操作--I/O
- Etcd 构建高可用Etcd集群
- How to set the WiFi password of the router on the computer
- Apple has abandoned navigationview and used navigationstack and navigationsplitview to implement swiftui navigation
- JSON转MAP前后数据校验 -- 自定义UDF
- Get ready for the pre-season card game MotoGP ignition champions!
- How to uninstall MySQL cleanly
- scratch五彩糖葫芦 电子学会图形化编程scratch等级考试三级真题和答案解析2022年6月
- yarn 常用命令
- [js] skill simplification if empty judgment
猜你喜欢

File operation --i/o

Jarvis OJ 远程登录协议

數據訪問 - EntityFramework集成

【机器人坐标系第一讲】

养不起真猫,就用代码吸猫 -Unity 粒子实现画猫咪

文件操作--I/O

Win11提示无法安全下载软件怎么办?Win11无法安全下载软件

How to set the WiFi password of the router on the computer

npm安装

Spring Festival Limited "forget trouble in the year of the ox" gift bag waiting for you to pick it up~
随机推荐
【组队 PK 赛】本周任务已开启 | 答题挑战,夯实商品详情知识
什么是ROM
数据访问 - EntityFramework集成
SQL injection of cisp-pte (Application of secondary injection)
Apple 已弃用 NavigationView,使用 NavigationStack 和 NavigationSplitView 实现 SwiftUI 导航
"21 days proficient in typescript-3" - install and build a typescript development environment md
composer安装报错:No composer.lock file present.
[js] skill simplification if empty judgment
[61dctf]fm
Raspberry pie 4B installation pytorch1.11
【剑指 Offer】63. 股票的最大利润
如何安装mysql
Google Earth Engine(GEE)——Kernel核函数简单介绍以及灰度共生矩阵
Solution of vant tabbar blocking content
Starkware: to build ZK "universe"
[61dctf]fm
Yarn common commands
树莓派4b安装Pytorch1.11
PHP人才招聘系统开发 源代码 招聘网站源码二次开发
Flet教程之 09 NavigationRail 基础入门(教程含源码)



