Mryqu's Notes


  • 首页

  • 搜索
close

使用Fetch_API

时间: 2018-03-09   |   分类: FrontEnd     |   阅读: 11 字 ~1分钟

今天又学了一招在Chrome developer tool中通过Fetch_API发起HTTP请求。 fetch_api代码示例:

fetch('https://jsonplaceholder.typicode.com/posts/1')
  .then(response => response.json())
  .then(json => console.log(json))

标题:使用Fetch_API
作者:mryqu
声明: 本博客所有文章除特别声明外,均采用 CC BY-NC-SA 3.0 CN 许可协议。转载请注明出处!

#fetch_api# #chrome# #devtool# #javascript# #html#
[AWS] 学习AWS上SAS联合账户的使用
安装Twurl并调试extended tweet mode
  • 文章目录
  • 站点概览

Programmer & Architect

662 日志
27 分类
1472 标签
GitHub Twitter FB Page
© 2009 - 2023 Mryqu's Notes
Powered by - Hugo v0.120.4
Theme by - NexT
0%