sea.getAssetAsBlob(key[, options])


类似于 sea.getAsset(),但返回的是 Blob 中的结果。找不到匹配的资源时会抛出错误。

🌐 Similar to sea.getAsset(), but returns the result in a Blob. An error is thrown when no matching asset can be found.

  • key <string> 在单个可执行应用配置中,由 assets 字段指定的字典中该资源的键。
  • options <Object>
    • type <string> Blob 的可选 MIME 类型。
  • 返回:<Blob>