界面:主机

自

0.2.0

方法

openExternal

▸ openExternal(url): void

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

自

0.2.0

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

参数

名称类型描述
url字符串浏览器将打开的 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

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

自

0.2.2