这篇文章主要介绍了微信小程序 跳转页面的两种方法详解的相关资料,需要的朋友可以参考下

微信小程序 跳转页面

小程序页面有2种跳转,可以在wxml页面或者js中:

1,在wxml页面中:

[js] view plain copy
  • navigator url="../index/index"跳转到新页面/navigator  
  • navigator url="../index/index" open-type="redirect"在当前页打开/navigator  
  • navigator url="../index/index" open-type="switchTab"切换到首页Tab/navigator  
  • 2,在js页面中:

      小程序

    【注意】此处注意两个关键词 “应用内的页面” 和 “tabBar页面”。  app.json文件中tabBar中注册过的tab页,即为“tabBar页面”,非tabBar中注册占用的页面即为“应用内的页面” 。 如下图:home页面为“应用内的页面”,index和logs页面则为 “tabBar页面”。

     小程序

    转自:http://blog.csdn.net/qq_23174861/article/details/78626949

    小程序

    TAG标签: 微信小程序微信网页板

    http://www.xiaochengxub.com/read-100682.html