你好 请问这个左上角的小房子是怎么设置的 有没有对应的方法 让他执行一些逻辑 比如清除缓存?

小程序 文章 2021-03-23 13:41 428 0 全屏看文

AI助手支持GPT4.0

你好 请问这个左上角的小房子是怎么设置的 有没有对应的方法 让他执行一些逻辑 比如清除缓存?Hello, how is this small house in the upper left corner set up? Is there a corresponding method to let him execute some logic, such as clearing the cache?

你好 请问这个左上角的小房子是怎么设置的 有没有对应的方法 让他执行一些逻辑 比如清除缓存?

你好 请问这个左上角的小房子是怎么设置的 有没有对应的方法 让他执行一些逻辑 比如清除缓存

Hello, how is the small house in the upper left corner set? Is there a corresponding method for it to perform some logic, such as clearing cache

回答:

大黑皮:

https://developers.weixin.qq.com/miniprogram/deveference/configuration/page.html#%E9%85%8D%E7%BD%AE%E9%A1%B9



navigationStyle


导航栏样式,仅支持以下值:

default 默认样式

custom 自定义导航栏,只保留右上角胶囊按钮。参见注 1。

赵子成:

据我所知暂不支持自定义配置...

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

wx.hideHomeButton文档

ᯅ对方已拒绝:

不能 只能设置隐藏

如果想实现 需要自定义导航栏

网上搜索自定义导航栏有参考例子

-EOF-

AI助手支持GPT4.0