发布于 5年前
Deno 读取文件内容
const filePath = './index.html'
const decoder = new TextDecoder('utf-8')
const content = decoder.decode(await Deno.readFile(filePath))
const filePath = './index.html'
const decoder = new TextDecoder('utf-8')
const content = decoder.decode(await Deno.readFile(filePath))