小程序
小游戏
企业微信
微信支付
扫描小程序码分享
真机调试时 app.globalData的调用会出现报错,IDE直接测试没问题
1 个回答
加粗
标红
插入代码
插入链接
插入图片
上传视频
麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)
你好,麻烦通过点击下方“反馈信息”按钮,提供出现问题的。
是利用ide的真机测试功能,所有机型 任何调用app.globalData.xxxx都有这个问题
代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)麻烦提供下
Cannot read property
'apiurl'
of undefined; [Component] Event Listener Error @ dist/button/index
#(anonymous)
TypeError: Cannot read property
of undefined
at q.login (http:
//127.0.0.1:13679/appservice/pages/login/login.js:82:28)
at q.A.u.(anonymous
function
).(anonymous
).u.addListener.capture (http:
//127.0.0.1:13679/appservice/__dev__/WAService.js:1:941940)
at r.safeCallback (http:
//127.0.0.1:13679/appservice/__dev__/WAService.js:1:784200)
at r.call (http:
//127.0.0.1:13679/appservice/__dev__/WAService.js:1:784093)
at n (http:
//127.0.0.1:13679/appservice/__dev__/WAService.js:1:787108)
at http:
//127.0.0.1:13679/appservice/__dev__/WAService.js:1:787690
at p (http:
//127.0.0.1:13679/appservice/__dev__/WAService.js:1:786655)
at Function.c.dispatchEvent (http:
//127.0.0.1:13679/appservice/__dev__/WAService.js:1:787587)
at Function.c.triggerEvent (http:
//127.0.0.1:13679/appservice/__dev__/WAService.js:1:787790)
at n.w.triggerEvent (http:
//127.0.0.1:13679/appservice/__dev__/WAService.js:1:864628)
请问这个是什么意思
这个参数未定义
关注后,可在微信内接收相应的重要提醒。
请使用微信扫描二维码关注 “微信开放社区” 公众号
麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)
是利用ide的真机测试功能,所有机型 任何调用app.globalData.xxxx都有这个问题
代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)麻烦提供下
Cannot read property
'apiurl'
of undefined; [Component] Event Listener Error @ dist/button/index
#(anonymous)
TypeError: Cannot read property
'apiurl'
of undefined
at q.login (http:
//127.0.0.1:13679/appservice/pages/login/login.js:82:28)
at q.A.u.(anonymous
function
).(anonymous
function
).u.addListener.capture (http:
//127.0.0.1:13679/appservice/__dev__/WAService.js:1:941940)
at r.safeCallback (http:
//127.0.0.1:13679/appservice/__dev__/WAService.js:1:784200)
at r.call (http:
//127.0.0.1:13679/appservice/__dev__/WAService.js:1:784093)
at n (http:
//127.0.0.1:13679/appservice/__dev__/WAService.js:1:787108)
at http:
//127.0.0.1:13679/appservice/__dev__/WAService.js:1:787690
at p (http:
//127.0.0.1:13679/appservice/__dev__/WAService.js:1:786655)
at Function.c.dispatchEvent (http:
//127.0.0.1:13679/appservice/__dev__/WAService.js:1:787587)
at Function.c.triggerEvent (http:
//127.0.0.1:13679/appservice/__dev__/WAService.js:1:787790)
at n.w.triggerEvent (http:
//127.0.0.1:13679/appservice/__dev__/WAService.js:1:864628)
请问这个是什么意思
这个参数未定义