There are two ways to set the startup page for WeChat applets:

Source: Internet
Author: User

Two Methods for setting the startup page for a Applet:

Startup page for applet settings

When developing a applet, apart from the page set on the tabBar, you must jump to the page if you want to enter the page. However, you must directly view the page during development, we need to set up two ways to start the page.

Method 1

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

Method 2

In the compilation place, you only need to set the page path and check "Use the above conditions to compile". If the page requires parameters, you can also pass the parameters. In this way, the page you set is started.

Thank you for reading this article. I hope it will help you. Thank you for your support for this site!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.