📜  获取 api - Javascript 代码示例

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

代码示例6
fetch('http://example.com/movies.json')
  .then(response => response.json())
  .then(data => console.log(data));