📅  最后修改于: 2022-03-11 15:01:31.732000             🧑  作者: Mango
window.onload = () => {
fetch('/path/to/page.html')
.then(data => {
return data.text()
})
.then( data => {
document.getElementById("parentContainer").innerHTML = data;
})
}