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 字段指定的字典中资源的键。

    ¥key <string> the key for the asset in the dictionary specified by the assets field in the single-executable application configuration.

  • options <Object>

    • type <string> blob 的可选 MIME 类型。

      ¥type <string> An optional mime type for the blob.

  • 返回:<Blob>

    ¥Returns: <Blob>