Skip to content

fetch

访问网络。

document.getElementById("run").addEventListener("click", run);

async function run() {
  await Excel.run(async (context) => {
    const response = await fetch("https://www.baima.site/");
    const text = await response.text();
    console.log(text);

    await context.sync();
  });
}
<button id="run">Run</button>

联系 math@baima.site