小程序跳转tabbar页面

如果在app.json 配置tabbar 的时候配置了 跳转的页面的链接;

在其余的子页面,设置用navigator 进行跳转会发现 在tabbar 设置过的页面无法进行跳转,这时需要在navigator 里加上open-type="switchTab"

例如: 

<navigator open-type="switchTab" url="../index/index" >
 
  </navigator>

原文地址:https://www.cnblogs.com/txzysfy/p/8780555.html