📅  最后修改于: 2022-03-11 15:03:01.449000             🧑  作者: Mango
const p = document.getElementById("myPelement")
fetch('http://example.com/movies.json')
.then((response) => {
return response.json();
})
.then((data) => {
p.innerText = data
});