微信小程序,简称小程序,英文名Mini Program,是一种不需要下载安装即可使用的应用,它实现了应用“触手可及”的梦想,用户扫一扫或搜一下即可打开应用。小程序是一种不用下载就能使用的应用,也是一项门槛非常高的创新,经过将近两年的发展,已经构造了新的小程序开发环境和开发者生态。
在微信小程序的官方手册中有介绍,navigator跳转页面样式分为两种一种是左上角带返回按钮跳转到新的页面,另一种不带即在本页跳转,通过控制redirect属性

我们分别演示一下上述两种方式:先看效果图

上述的效果图中,我们可以看出两种页面跳转的区别。
.js代码
<view>
<navigator url="../other/other" hover-class="changestyle">页面跳转,可以返回</navigator>
</view>
<view>
<navigator url="../other/other" hover-class="changestyle" redirect>页面跳转,无法返回</navigator>
</view>