你可能是忘记在 fetch 返回的 Promise 中对 res 进行“转码”,类似下列代码中的 res.json()。 fetch("xxxx").then(res => res.json()).then(res => console.log(res))
你可能是忘记在 fetch 返回的 Promise 中对
res
进行“转码”,类似下列代码中的res.json()
。