Introduction to navigator page jump in WeChat applet development

高洛峰
Release: 2017-03-22 16:50:28
Original
2803 people have browsed it

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

.wxss code

.changestyle{
    color: red;
}
Copy after login

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!

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!