运维中心-错误查询报的错误
wx.showLoading is not a function. (In 'wx.showLoading({title:"正在加载",mask:!0,success:function(){}})', 'wx.showLoading' is undefined);at "pages/shop/contact/contact" page loadPageData function
微信客户端版本是6.5.3,这个肯定高于wx.showloading的要求的基础库 1.1.0的版本了。
请提供代码片段
你好,方便给个相关的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)看下你是怎么实现的?麻烦也提供下小程序的appid
你好,我这里也经常出现这个问题。
thirdScriptError
wx.showLoading is not a
function
. (In
'wx.showLoading({title:"登录中",mask:!0})'
,
'wx.showLoading'
is undefined);App
catch
error
in
lifeCycleMethod onLaunch
function
onLaunch
onLaunch@[native code]
r
r@[native code]
e
require
global code
thirdScriptError
wx.showLoading is not a
function
;at
"pages/index/index"
page lifeCycleMethod onLoad
function
TypeError: wx.showLoading is not a
function
at e.onLoad (X5JavaBridge-59cfbc79d7852a4db25e67affa18f9c0:10:3357)
at e.<anonymous> (X5JavaBridge-8940e78ec1c0b362928b21e82b857137:6:15637)
at m (X5JavaBridge-8940e78ec1c0b362928b21e82b857137:6:5855)
at k (X5JavaBridge-8940e78ec1c0b362928b21e82b857137:6:7534)
at Function.<anonymous> (X5JavaBridge-8940e78ec1c0b362928b21e82b857137:6:9120)
at X5JavaBridge-8940e78ec1c0b362928b21e82b857137:6:13018
at X5JavaBridge-8940e78ec1c0b362928b21e82b857137:4:2990
at Array.forEach (native)
at Function.<anonymous> (X5JavaBridge-8940e78ec1c0b362928b21e82b857137:4:2970)
at X5JavaBridge-8940e78ec1c0b362928b21e82b857137:4:11394
代码就是简单的代码
onLoad: function () {
wx.showLoading({
title: '登录中',
});
方便给个相关的代码片段( https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html )?
其实我用手机和模拟器都测不出这个问题,这个错误是因为我再APPJS里面的onError里面写了个接口,有错误就存进数据库里面。我怀疑是不是不同的手机版本兼容问题