Two ways to jump to pages in WeChat mini programs

不言
Release: 2018-06-22 16:12:48
Original
5314 people have browsed it

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>
Copy after login

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!

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