wx.request success(res)res.data.state 都有那些值,都是什么意思

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

AI助手支持GPT4.0

wx.request success(res)res.data.state 都有那些值,都是什么意思wx.request success(res)res.data.state has those values, what do they mean

wx.request success(res)res.data.state 都有那些值,都是什么意思
框架类型 问题类型 API/组件名称 终端类型 微信版本 基础库版本
小程序 Bug wx.request 微信安卓客户端 7.0.18 2.10.0

wx.request success(res) 这个 res 里有一个 data.state ,请问这个 res.data.state 都有那些值,都是什么意思,例如 202 是什么意思。

Framework type problem type API / component name terminal type wechat version basic library version applet bug wx.request Wechat Android client 7.0.18 2.10.0 wx.request Success (RES) there is one in the res data.state This one, please res.data.state What do they mean? For example, what does 202 mean.

回答:

Admin²⁰²⁰:

data.state要问你后端接口开发了

问这个字段啥意思

data字段里面的字段和值完全由接口方把控。

Oliver:

这是HTTP请求回调的状态码呀,内容比较多,自行搜索答案。

202 (已接受) 服务器已接受请求,但尚未处理。

青寒:

这是调哪个接口的返回值?

-EOF-

AI助手支持GPT4.0