原生api问题
发布于 6 年前 作者 jing37 18554 次浏览 来自 问答

从小程序的后台,运维中心看到这样的报错:

Appid: wx1f9ea355b47256dd

昵称: xxxxx

时间: 2018-05-18 23:19:21

次数: 5分钟 15次

类型:脚本错误

错误样例: wx.showLoading is not a function. (In ‘wx.showLoading({title:“加载中”,mask:!0})’, ‘wx.showLoading’ is undefined);at “pages/fightGroups/index/index” page lifeCycleMethod onLoad function

登录公众平台小程序运维中心可查看更多错误信息

可是在对应页面里面,只有一句wx.showLoading。

想问一下官方工程师,这是什么原因?

还有很多运维中心报的告警,很多在代码里面找不到。例如wx.hideLoading() is undefined。

1 回复

可能是用户微信版本太低导致的。如果在意这个问题,可以换成 wx.showToast,指定 icon 为 loading。

回到顶部