发布于 5年前
deno 如何写到文件
let str = "hello world"
const data = new TextEncoder().encode(str)
await Deno.writeFile("./hello.txt", data)
let str = "hello world"
const data = new TextEncoder().encode(str)
await Deno.writeFile("./hello.txt", data)