fetch res => res.json()是什么

Fetch相关问题:stackOverflow链接

.json() will just return the body as promise with json content.

然后好好阅读:fetch文档 链接


我之前一直困惑axios和fetch 是不是都得用res => res.json()?现在有点明白了

axios根本不需要用res.json

Axios相关问题:StackOverflow链接

链接中请仔细看here的链接(下图中我标注了)
axios

猜你喜欢

转载自blog.csdn.net/weixin_43814775/article/details/107995513