Interface: Host

始于

0.2.0

方法

openExternal

openExternal(url): void

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

始于

0.2.0

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

参数

名称类型描述
urlstring浏览器将打开的 URL(必须使用 http 或 https 协议)。

返回值

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

返回操作系统的 hostname。请参阅 https://node.org.cn/api/os.html#oshostname

始于

0.2.2

页面选项