blob.bytes()


blob.bytes() 方法返回 Blob 对象的字节,作为一个 Promise<Uint8Array>

【The blob.bytes() method returns the byte of the Blob object as a Promise<Uint8Array>.】

const blob = new Blob(['hello']);
blob.bytes().then((bytes) => {
  console.log(bytes); // Outputs: Uint8Array(5) [ 104, 101, 108, 108, 111 ]
});