📜  fetch('https: www.example.com index.html') .then(res => res.text()) .then(html => console.log(html)); - HTML代码示例

📅  最后修改于: 2022-03-11 14:52:59.043000             🧑  作者: Mango

代码示例1
fetch('https://www.gs1us.org')
  .then(res => res.text())
  .then(html => console.log(html));