zoukankan      html  css  js  c++  java
  • 小程序开发-组件navigator导航篇

    页面链接

    navigator的open-type属性
    可选值 navigateredirectswitchTab,对应于wx.navigateTowx.redirectTowx.switchTab的功能

    1. open-type="navigate"等价于 API 的 wx.navigateTo 而wx.navigateTo的url是需要跳转的应用内非 tabBar 的页面的路径

    2. open-type="redirect"等价于 API 的 wx.redirectTo 而wx.redirectTo的url是需要跳转的应用内非 tabBar 的页面的路径

    3. open-type="switchTab"等价于 API 的 wx.switchTab wx.switchTab 的url是需要跳转到 tabBar 页面,并关闭其他所有非 tabBar 页面

    最后一个switchTab事件触发以后 把前面的页面都关闭了

    使用限制

    需要用户确认跳转 从 2.3.0 版本开始,在跳转至其他小程序前,将统一增加弹窗,询问是否跳转,用户确认后才可以跳转其他小程序。如果用户点击取消,则回调 fail cancel。
    每个小程序可跳转的其他小程序数量限制为不超过 10 个 从 2.4.0 版本以及指定日期(具体待定)开始,开发者提交新版小程序代码时,如使用了跳转其他小程序功能,则需要在代码配置中声明将要跳转的小程序名单,限定不超过 10 个,否则将无法通过审核。该名单可在发布新版时更新,不支持动态修改。配置方法详见 配置。调用此接口时,所跳转的 appId 必须在配置列表中,否则回调 fail appId "${appId}" is not in navigateToMiniProgramAppIdList。

  • 相关阅读:
    Hex Workshop工具和SIP Workbench
    8. The properties panel && The methods panel
    7.Highlight & inspect
    (转载)SWF 文件分析(一)
    10.The memory monitor panel(内存监视器面板)
    (转)十一种通用滤波算法
    (转)USB协议简介
    (转)什么是CDC类(Communication Device Class)
    (转)CDC 虚拟com口
    (转)USB (Universal Serial Bus)
  • 原文地址:https://www.cnblogs.com/limaostudio/p/13613552.html
Copyright © 2011-2022 走看看