微信小程序H.createEvent is not a function解决
解决方案:报错信息:解决方案:
检查接口、资源地址是否正确,如果配置了ssl使用的https,检查证书是否过期!
报错信息:
// An highlighted blockVM13:2 MiniProgramErrorQ.createEvent is not a functionTypeError: Q.createEvent is not a functionat 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:2thirdErrorReport @ VM13:2eval @ VM13:2u @ VM13:2eval @ VM13:2eval @ VM13:2setTimeout (async)setTimeout @ VM13:2_.now.o.addEventListener.o.importScripts.h.protocol.n @ VM13:2f @ VM13:2ie @ VM13:2eval @ VM13:2n @ VM13:2y.<computed> @ VM13:2w @ VM13:2eval @ VM13:2u @ VM13:2eval @ VM13:2eval @ VM13:2setTimeout (async)setTimeout @ VM13:2_.now.o.addEventListener.o.importScripts.h.protocol.n @ VM13:2f @ VM13:2y.resolve.o @ VM13:2e.exports @ VM13:2re @ VM13:2ce @ VM13:2eval @ VM13:2u @ VM13:2eval @ VM13:2eval @ VM13:2