Home  >  Article  >  WeChat Applet  >  Introduction to navigator page jump in WeChat applet development

Introduction to navigator page jump in WeChat applet development

高洛峰
高洛峰Original
2017-03-22 16:50:282761browse

As introduced in the official manual of the WeChat applet, the navigator jump page style is divided into two types. One is to jump to a new page with a return button in the upper left corner, and the other is to jump to this page without it. By controlling the redirect attribute

Introduction to navigator page jump in WeChat applet development

# we demonstrate the above two methods respectively: first look at the renderings

Introduction to navigator page jump in WeChat applet development

The above effects In the picture, we can see the difference between the two page jumps.

.js code

<view>
    <navigator url="../other/other" hover-class="changestyle">页面跳转,可以返回</navigator>
</view>
<view>
    <navigator url="../other/other" hover-class="changestyle" redirect>页面跳转,无法返回</navigator>
</view>

.wxss code

.changestyle{
    color: red;
}

The above is the detailed content of Introduction to navigator page jump in WeChat applet development. 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