wx.hideShareMenu is not a function

发布于 6 年前作者 yangli9047 次浏览最后编辑 6 年前来自 ask

在报错后台看到以下问题

wx.hideShareMenu is not a function. (In ‘wx.hideShareMenu()’, ‘wx.hideShareMenu’ is undefined);at “pages/error/error” page lifeCycleMethod onLoad function

开发及使用过程中没遇到过这样的报错,onLoad方法中还会出现wx对象没加载的情况吗?

1 回复
qiang79
qiang791 楼4 年前

看着像是基础库的问题,是不是基础库太低了。基础库 1.1.0 开始支持,低版本需做兼容处理