摘要: 在服务端和客户端之间用http的方式传递json时,现在可以在客户端用fetch发起请求: var datas = { foo:1, bar:2 } var ret = await fetch('/api/', { method: 'POST', headers:{ 'Content-Type' : 阅读全文
posted @ 2016-07-20 21:54 Brionac 阅读(6701) 评论(0) 推荐(0) 编辑