接口: 主机

Since

0.2.0

方法

openExternal

openExternal(url): void

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

Since

0.2.0

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

参数

NameTypeDescription
urlstringThe URL the browser will open (must have the protocol http or https).

返回

void

属性

平台

platform: string

返回一个标识操作系统平台的字符串。参见 https://nodejs.org/api/os.html#osplatform

Since

0.2.2


arch

arch: string

返回操作系统的CPU架构。参见 https://nodejs.org/api/os.html#osarch

Since

0.2.2


hostname

主机名: string

返回操作系统的主机名。参见 https://nodejs.org/api/os.html#oshostname

Since

0.2.2