Koa中间件ctx.request.body为何是字符串?-灵析社区

米斯达

这个要看请求你传的Content-Type类型 fetch("http://localhost:7777/deploy?d=1111",{ method:'POST', //请求类型 headers:{ //请求头 "Content-Type":'application/json' }, body:JSON.stringify({ a:33333}), //请求参数 }).then(function(res){ return res.json(); })

阅读量:1

点赞量:0

问AI