📜  从 json 占位符获取数据 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:59.935000             🧑  作者: Mango

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