界面:主机

0.2.0

方法

openExternal

openExternal(url): void

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

0.2.0

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

参数

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

返回

void

属性

platform

platform: string

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

0.2.2


arch

arch: string

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

0.2.2


hostname

hostname: string

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

0.2.2