From c19fa6b413548d33b3ee21280b8c3aaa8c80a3b4 Mon Sep 17 00:00:00 2001 From: Yangys Date: Fri, 14 Apr 2023 07:55:28 +0000 Subject: [PATCH] update zh-cn/application-dev/reference/apis/js-apis-net-connection.md. Signed-off-by: Yangys --- .../reference/apis/js-apis-net-connection.md | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-net-connection.md b/zh-cn/application-dev/reference/apis/js-apis-net-connection.md index ee0f9316c4..88b20ef52f 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-net-connection.md +++ b/zh-cn/application-dev/reference/apis/js-apis-net-connection.md @@ -825,7 +825,9 @@ reportNetConnected(netHandle: NetHandle): Promise<void> | netHandle | [NetHandle](#nethandle) | 是 | 数据网络的句柄,参考[NetHandle](#nethandle)。 | **返回值:** -| 类型 | 说明 | | -------- | -------- | | Promise<void> | 无返回值的Promise对象。 | +| 类型 | 说明 | +| -------- | -------- | +| Promise<void> | 无返回值的Promise对象。 | **错误码:** @@ -901,7 +903,9 @@ reportNetDisconnected(netHandle: NetHandle): Promise<void> | netHandle | [NetHandle](#nethandle) | 是 | 数据网络的句柄,参考[NetHandle](#nethandle)。 | **返回值:** -| 类型 | 说明 | | -------- | -------- | | Promise<void> | 无返回值的Promise对象。 | +| 类型 | 说明 | +| -------- | -------- | +| Promise<void> | 无返回值的Promise对象。 | **错误码:** @@ -1731,5 +1735,8 @@ connection.getDefaultNet().then(function (netHandle) { **系统能力**:SystemCapability.Communication.NetManager.Core -| 名称 | 类型 | 必填 | 说明 | | ------- | ------ | -- |------------------------------ | | address | string | 是 |地址。 | | family | -number | 否 |IPv4 = 1,IPv6 = 2,默认IPv4。 | | port | number | 否 |端口,取值范围\[0, 65535]。 | +| 名称 | 类型 | 必填 | 说明 | +| ------- | ------ | -- |------------------------------ | +| address | string | 是 |地址。 | +| family | number | 否 |IPv4 = 1,IPv6 = 2,默认IPv4。 | +| port | number | 否 |端口,取值范围\[0, 65535]。 | -- GitLab