wx.request不执行,这么诡异?

小程序 文章 2020-09-07 13:21 645 0 全屏看文

AI助手支持GPT4.0

wx.request不执行,这么诡异?Wx.request is not executed, so weird?

wx.request不执行,这么诡异?

页面加载在onLoad和onShow里wx.request,sucess,fail,complete均不执行,相当于直接跳过wx.reuqest()。

太诡异了,为什么不行了?之前有人说是SSL证书的问题,我重新申请了个,还是不行。域名已经验证过了,域名之前也一直有用的另一个小程序,也正常。有没有人遇到过?

The page is loaded in onload and Onshow wx.request , sucess, fail and complete are not executed, which is equivalent to skipping directly wx.reuqest ()。 That's weird. Why not? Some people said it was the SSL certificate problem. I applied for it again, but it still didn't work. Domain name has been verified, domain name has been useful before another small program, also normal. Has anyone met?

回答:

搞文艺的猿:

看下有没有请求

!:

Network里有请求吗

xy:

error报错了吧?

Admin²⁰²⁰:

你 加个complete回调,console一下日志看是否出错了。

request如果没有success的话,可能无法达到你预期的效果。让你感觉「没有执行」

谢统华:complete也没有执行,console.log(res)没有写出。

-EOF-

AI助手支持GPT4.0