fetch请求(window自带的属性)


控制台输出。

fetch("https://m.jiahuaduola.com/api/app/json",{ method:"POST", headers:{'content-type': 'application/json'}, mode: 'cors', body:JSON.stringify({header: {bizCode: "cms001"},body: {status: "1", id: "1"}}) }).then(res=>{ return res.json(); }).then(res1=>{ console.log(res1); })

  

posted @ 2020-07-27 13:54  Action_swt  阅读(639)  评论(0编辑  收藏  举报