getDownloadUrl() 函数
🌐 getDownloadUrl() function
检索用于下载指定浏览器二进制存档的 URL。
🌐 Retrieves a URL for downloading the binary archive of a given browser.
存档与指定的特定平台和版本 ID 绑定。
🌐 The archive is bound to the specific platform and build ID specified.
语法
🌐 Signature
export declare function getDownloadUrl(
browser: Browser,
platform: BrowserPlatform,
buildId: string,
baseUrl?: string,
): URL;
参数
🌐 Parameters
|
范围 🌐 Parameter |
类型 🌐 Type |
描述 🌐 Description |
|---|---|---|
|
browser | ||
|
platform | ||
|
buildId |
string | |
|
baseUrl |
string |
(可选) 🌐 (Optional) |
返回:
网址
🌐 URL