


Introduction to WeChat Mini Program Development Registration Page
This article mainly introduces the relevant information of the WeChat Mini ProgramRegistration Page. Friends who need it can refer to
WeChat Mini Program——Page
Page()Function is used to register a page. Accepts an object parameter, which specifies the initial data of the page, life cycle function, event handling function, etc.
object parameter description:
##Attribute | TypeDescription | ||
---|---|---|---|
Object | Initial data of the page | ||
onLoad | FunctionLife cycle function--listen to page loading | ||
Function | Life cycle function--listen for page rendering completion | ||
Function | Life cycle function--listen for page display | ||
Function | Life cycle function--listening page hide | ||
onUnload | FunctionLife cycle function--listen for page unloading | ||
Any | Developers can add any function or data to the Object parameter, which can be accessed using this |
Trigger timing | Page after routing | Page before routing | |
---|---|---|---|
The first page opened by the applet | onLoad, onShow | ||
Call | API wx.navigateTo or use the component | onLoad, onShowonHide | |
Call API wx.redirectTo or use Component | onLoad, onShow | onUnload | |
Call API wx.navigateBack or user Press the return button in the upper left corner | onShow | onUnload | |
Users switch Tabs in multi-Tab mode | Open onLoad for the first time, onshow; otherwise onShow | onHide |
The above is the detailed content of Introduction to WeChat Mini Program Development Registration Page. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft