收藏
回答

用了wx.hideHomebutton() 后编辑器报错,如何处理

框架类型 问题类型 API/组件名称 终端类型 微信版本 基础库版本
小程序 Bug wx.hideHomebutton() 工具 7.0.16 2.2.3

用了wx.hideHomebutton() 后编辑器报错,如何处理

VM10731:1 thirdScriptError

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

TypeError: wx.hideHomeButton is not a function

    at ye.onShow (http://127.0.0.1:55471/appservice/pages/register/register.js:87:8)

    at ye.<anonymous> (WAService.js:1:1353019)

    at ye.p.__callPageLifeTime__ (WAService.js:1:1352764)

    at Tt (WAService.js:1:1367749)

    at WAService.js:1:1369475

    at xt (WAService.js:1:1369521)

    at Function.<anonymous> (WAService.js:1:1374768)

    at i.<anonymous> (WAService.js:1:1344283)

    at i.emit (WAService.js:1:445256)

    at Object.emit (WAService.js:1:607614)

console.error @ VM10731:1

errorReport @ WAService.js:1

thirdErrorReport @ WAService.js:1

(anonymous) @ WAService.js:1

(anonymous) @ WAService.js:1

p.__callPageLifeTime__ @ WAService.js:1

Tt @ WAService.js:1

(anonymous) @ WAService.js:1

xt @ WAService.js:1

(anonymous) @ WAService.js:1

(anonymous) @ WAService.js:1

i.emit @ WAService.js:1

emit @ WAService.js:1

(anonymous) @ WAService.js:1

(anonymous) @ WAService.js:1

n @ VM10735 asdebug.js:1

(anonymous) @ VM10735 asdebug.js:1

(anonymous) @ VM10735 asdebug.js:1

_ws.onmessage @ VM10735 asdebug.js:1

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

2 个回答

  • -ℳℳℳ💛
    -ℳℳℳ💛
    2020-07-03

    基础库怎么升级?我的是编辑工具的报错,手机没事


    2020-07-03
    有用
    回复
  • lxahbb
    lxahbb
    2020-07-03

    基础库太低了,这个版本还没有这个方法,做下版本兼容

    2020-07-03
    有用
    回复
登录 后发表内容
问题标签