收藏
回答

wx.hideHomeButton is not a function?

wx.hideHomeButton is not a function;at "pages/login/login" page lifeCycleMethod onShow function

TypeError: wx.hideHomeButton is not a function


回答关注问题邀请回答
收藏

6 个回答

  • 禾店短剧系统
    禾店短剧系统
    2021-06-09

    这是在哪报错的

    2021-06-09
    有用 1
    回复
  • 浪途
    浪途
    2019-10-12

    我的能生效,也会报wx.hideHomeButton is not a function;at "pages/index/index" page lifeCycleMethod onShow function

    2019-10-12
    有用 1
    回复
  • 青团社
    青团社
    2019-09-27

    微信7.0.7版本起,当用户打开的小程序最底层页面是非首页时,默认展示“返回首页”按钮,开发者可在页面 onShow 中调用 hideHomeButton 进行隐藏。

    查看下你的 基础库版本是多少,开发者工具更新到最高,如果是线上版本 可使用 wx.canIUse进行处理。或者小程序后台设置线上基础库最低版本为支持 wx.hideHomeButton这个api的版本

    2019-09-27
    有用 1
    回复 13
    • Toujours seul
      Toujours seul
      2020-01-15
      为什么我设置了2.8.3的基础库线上还是报错 wx.hideHomeButton is not a function
      2020-01-15
      回复
    • 小叮当
      小叮当
      2020-03-25
      我也是
      2020-03-25
      回复
    • 青团社
      青团社
      2020-03-27回复Toujours seul
      咋设置的。
      2020-03-27
      回复
    • 青团社
      青团社
      2020-03-27回复小叮当
      是小程序后台设置线上最低基础库版本吗?
      2020-03-27
      回复
    • 小叮当
      小叮当
      2020-03-27
      本地设置-调试库 2.9.3
      2020-03-27
      回复
    查看更多(8)
  • YU,
    YU,
    2019-12-24

    你这是在青蛙pro设备上报的错吧?

    2019-12-24
    有用
    回复
  • 是小白啊
    是小白啊
    2019-09-27

    https://developers.weixin.qq.com/miniprogram/dev/api/ui/navigation-bar/wx.hideHomeButton.html需要做下兼容:

    2019-09-27
    有用
    回复
  • ʚ青ɞ
    ʚ青ɞ
    2019-09-27

    小程序有这个api吗

    2019-09-27
    有用
    回复 5
登录 后发表内容
问题标签