📜  等效方法 load jquery with javascript Code Example

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

代码示例1
window.onload = () => {
    fetch('/path/to/page.html')
    .then(data => {
      return data.text()
    })
    .then( data => {
      document.getElementById("parentContainer").innerHTML = data;
    })
}