首页 > Windows开发 > 详细

fetch请求(window自带的属性)

时间:2020-07-27 17:39:18      阅读:92      评论:0      收藏:0      [点我收藏+]

控制台输出。

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

  

fetch请求(window自带的属性)

原文:https://www.cnblogs.com/swt-axios/p/13385061.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!