search
HomeWeChat AppletMini Program DevelopmentTwo ways to jump to pages in WeChat mini programs

Two ways to jump to pages in WeChat mini programs

Jun 22, 2018 pm 04:12 PM
WeChat appletJump page

This article mainly introduces the relevant information on the two methods of jumping to the WeChat mini program page. Friends in need can refer to

WeChat mini program jump page

There are two types of jumps in the mini program page, which can be in the wxml page or js:

1, in the wxml page:

 <navigator url="../index/index">跳转到新页面</navigator>
 <navigator url="../index/index" open-type="redirect">在当前页打开</navigator>
 <navigator url="../index/index" open-type="switchTab">切换到首页Tab</navigator>

2, in the js page:


[Note]This Pay attention to the two keywords "page within the application" and "tabBar page". The tab page registered in the tabBar in the app.json file is the "tabBar page", and the page not registered in the tabBar is the "page within the application". As shown below: the home page is the "page within the application", and the index and logs pages are the "tabBar page".

The above is the entire content of this article. I hope it will be helpful to everyone’s study. For more related content, please pay attention to the PHP Chinese website!

Related recommendations:

How to develop the verification code password input box function in the WeChat mini program

WeChat mini program development How to choose a city in

What are the commonly used operators in WeChat mini programs

The above is the detailed content of Two ways to jump to pages in WeChat mini programs. For more information, please follow other related articles on the PHP Chinese website!

Statement
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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

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

Hot Tools

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool