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); })