接口:Host
目录
自
0.2.0
方法
openExternal
▸ openExternal(url): void
使用系统默认浏览器打开外部 URL。
自
0.2.0
ddClient.host.openExternal("https://docker.com");参数
| 名称 | 类型 | 描述 |
|---|---|---|
url | 字符串 | 浏览器将打开的 URL(必须包含协议 http 或 https)。 |
返回
void
属性
platform
• 平台: string
返回一个标识操作系统的字符串。请参阅 https://node.org.cn/api/os.html#osplatform
自
0.2.2
arch
• 架构: string
返回操作系统的 CPU 架构。请参阅 https://node.org.cn/api/os.html#osarch
自
0.2.2
hostname
• 主机名: string
返回操作系统的主机名。请参阅 https://node.org.cn/api/os.html#oshostname
自
0.2.2