horshoo
horshoo
发布于 2个月前

Deno 读取文件内容

const filePath = './index.html'
const decoder = new TextDecoder('utf-8')
const content = decoder.decode(await Deno.readFile(filePath))