Home > WeChat Applet > Mini Program Development > An introduction to two methods for setting the startup page of WeChat mini programs

An introduction to two methods for setting the startup page of WeChat mini programs

高洛峰
Release: 2017-03-16 15:20:54
Original
3201 people have browsed it

This article mainly introduces the relevant information about the two methods of setting the startup page of the WeChat applet. Here are the two methods of setting the startup page. Friends in need can refer to the following

WeChat applet setting startup page

When developing the WeChat applet, in addition to the page set on the tabBar, if you want to enter, you must use a jump or the like, but when we develop If you definitely want to see this page directly, then we need to set up the startup page. There are two methods.

Method 1

In the app.json file, the pagesarray is set to the first page The default startup page, so you only need to adjust the order of the pages you are currently developing.

An introduction to two methods for setting the startup page of WeChat mini programs

Method 2

Set it at the compilation place. You only need to set the path of the page and check "Use the above conditions Compile", if the page requires parameters, you can also pass the parameters. What is launched in this way is the page you set.

An introduction to two methods for setting the startup page of WeChat mini programs

Thank you for reading, I hope it can help you, thank you for your support of this site!

The above is the detailed content of An introduction to two methods for setting the startup page of WeChat mini programs. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template