网络请求

Fetch

与 Fetch API 相同,无视 CORS。

await .("https://graphif.dev", {
  : "POST",
});

获取 JSON

获取 JSON 数据时需要使用 fetch_json

const  = await .(
  "https://api.github.com/repos/graphif/project-graph",
);

获取二进制数据

获取二进制数据时需要使用 fetch_base64 或者 fetch_binary

const  = await .("https://assets.graphif.dev/icon.png");
const  = await .("https://assets.graphif.dev/icon.png");

On this page