控制台使用 fetch请求: fetch(‘http://example.com/movies.json’) .then(r => r.json()) .then(r => console.log® )