小程序
小游戏
企业微信
微信支付
扫描小程序码分享
9 个回答
加粗
标红
插入代码
插入链接
插入图片
上传视频
'setting' 没有定义
'setting'
没有定义
你好,麻烦通过点击下方“反馈信息”按钮,提供出现问题的。
index.js 33行 猜是没有写this.data 应该是this.data.xxx.setting
事先没有在data中定义要setData的值
先确定 a有值
那个,能不能贴点代码?
Cannot read property 'setting' of undefined;at api request success callback function
TypeError: Cannot read property 'setting' of undefined
at Object.success (weapp:///fy_lessonv2/pages/index/index.js:33:42)
at weapp:///we7/resource/js/util.js:120:69
at function.o.(anonymous function) (WAService.js:1:1123586)
at yk (WAService.js:1:1083738)
at Function.success (WAService.js:1:1085405)
at WAService.js:1:102995
at k (WAService.js:1:437200)
at i.<
anonymous
> (WAService.js:1:704954)
at i.emit (WAService.js:1:459831)
at Bs (WAService.js:1:705562)
在微信公众号后台里看到错误是这样提示
我猜,你没有var _this = this
这个嘛,有啊
按照下面链接的方式,弄个能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)
thirdScriptError
Cannot read property
of undefined;at api request success callback
function
TypeError: Cannot read property
of undefined
关注后,可在微信内接收相应的重要提醒。
请使用微信扫描二维码关注 “微信开放社区” 公众号
'setting'
没有定义
index.js 33行 猜是没有写this.data 应该是this.data.xxx.setting
事先没有在data中定义要setData的值
先确定 a有值
那个,能不能贴点代码?
Cannot read property 'setting' of undefined;at api request success callback function
TypeError: Cannot read property 'setting' of undefined
at Object.success (weapp:///fy_lessonv2/pages/index/index.js:33:42)
at weapp:///we7/resource/js/util.js:120:69
at function.o.(anonymous function) (WAService.js:1:1123586)
at yk (WAService.js:1:1083738)
at Function.success (WAService.js:1:1085405)
at WAService.js:1:102995
at k (WAService.js:1:437200)
at i.<
anonymous
> (WAService.js:1:704954)
at i.emit (WAService.js:1:459831)
at Bs (WAService.js:1:705562)
在微信公众号后台里看到错误是这样提示
我猜,你没有var _this = this
这个嘛,有啊
按照下面链接的方式,弄个能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)
thirdScriptError
Cannot read property
'setting'
of undefined;at api request success callback
function
TypeError: Cannot read property
'setting'
of undefined