摘要: 如果使用fetch获取数据,用的是POST方法,注意headers要添加请求头。当请求为GET时不能用body,当为POST时必须包含body,设置头部之后就一切正常了。 fetch("http://xx.xx.xx.xx/login.do?srt=2", { method : 'POST', body : JSON.stringify({ SL... 阅读全文
posted @ 2015-12-01 14:35 meteoric_cry 阅读(11079) 评论(0) 推荐(0) 编辑