解决方案:
检查接口、资源地址是否正确,如果配置了ssl使用的https,检查证书是否过期!
报错信息:
// An highlighted block
VM13:2 MiniProgramError
Q.createEvent is not a function
TypeError: Q.createEvent is not a function
at ne (eval at n.call.document (http://127.0.0.1:23647/remote-debug/runtime.js?devtools_ignore=true:1:14643), <anonymous>:2:57292)
at eval (eval at n.call.document (http://127.0.0.1:23647/remote-debug/runtime.js?devtools_ignore=true:1:14643), <anonymous>:2:57590)
at e.exports (eval at n.call.document (http://127.0.0.1:23647/remote-debug/runtime.js?devtools_ignore=true:1:14643), <anonymous>:2:36385)
at eval (eval at n.call.document (http://127.0.0.1:23647/remote-debug/runtime.js?devtools_ignore=true:1:14643), <anonymous>:2:57541)
at y.<computed> (eval at n.call.document (http://127.0.0.1:23647/remote-debug/runtime.js?devtools_ignore=true:1:14643), <anonymous>:2:42522)
at w (eval at n.call.document (http://127.0.0.1:23647/remote-debug/runtime.js?devtools_ignore=true:1:14643), <anonymous>:2:42251)
at Function.eval (eval at n.call.document (http://127.0.0.1:23647/remote-debug/runtime.js?devtools_ignore=true:1:14643), <anonymous>:2:42289)
at <setTimeout callback function>
at eval (eval at n.call.document (http://127.0.0.1:23647/remote-debug/runtime.js?devtools_ignore=true:1:14643), <anonymous>:2:115064)
at eval (eval at n.call.document (http://127.0.0.1:23647/remote-debug/runtime.js?devtools_ignore=true:1:14643), <anonymous>:2:107930)
errorReport @ VM13:2
thirdErrorReport @ VM13:2
eval @ VM13:2
u @ VM13:2
eval @ VM13:2
eval @ VM13:2
setTimeout (async)
setTimeout @ VM13:2
_.now.o.addEventListener.o.importScripts.h.protocol.n @ VM13:2
f @ VM13:2
ie @ VM13:2
eval @ VM13:2
n @ VM13:2
y.<computed> @ VM13:2
w @ VM13:2
eval @ VM13:2
u @ VM13:2
eval @ VM13:2
eval @ VM13:2
setTimeout (async)
setTimeout @ VM13:2
_.now.o.addEventListener.o.importScripts.h.protocol.n @ VM13:2
f @ VM13:2
y.resolve.o @ VM13:2
e.exports @ VM13:2
re @ VM13:2
ce @ VM13:2
eval @ VM13:2
u @ VM13:2
eval @ VM13:2
eval @ VM13:2