接口:Host

0.2.0

方法

openExternal

openExternal(url): void

使用系统默认浏览器打开外部 URL。

0.2.0

ddClient.host.openExternal("https://docker.com");

参数

名称类型描述
url字符串浏览器将打开的 URL(必须包含协议 httphttps)。

返回

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

© . This site is unofficial and not affiliated with Kubernetes or Docker Inc.