Skip to main content
Blob 类提供了多种方法以不同格式获取其内容,包括 .text()
const blob = new Blob(["hello world"]);
const str = await blob.text();
// => "hello world"

完整的二进制数据操作文档,请参见 文档 > API > 二进制数据 中关于使用 Bun 操作二进制数据的内容。