wx.hideHomeButton is not a function?
发布于 5 年前 作者 fang82 1758 次浏览 来自 官方Issues

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

TypeError: wx.hideHomeButton is not a function

5 回复

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

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

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

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

小程序有这个api吗

回到顶部