From 97c827841ffe8ea321939c9ebe5c14e1ed5242d6 Mon Sep 17 00:00:00 2001 From: Yangys Date: Fri, 14 Apr 2023 09:32:47 +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 2d389adc26..a488330246 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 @@ -985,7 +985,9 @@ reportNetConnected(netHandle: NetHandle): Promise<void> | netHandle | [NetHandle](#nethandle) | 是 | 数据网络的句柄,参考[NetHandle](#nethandle)。 | **返回值:** -| 类型 | 说明 | | -------- | -------- | | Promise<void> | 无返回值的Promise对象。 | +| 类型 | 说明 | +| -------- | -------- | +| Promise<void> | 无返回值的Promise对象。 | **错误码:** @@ -1061,7 +1063,9 @@ reportNetDisconnected(netHandle: NetHandle): Promise<void> | netHandle | [NetHandle](#nethandle) | 是 | 数据网络的句柄,参考[NetHandle](#nethandle)。 | **返回值:** -| 类型 | 说明 | | -------- | -------- | | Promise<void> | 无返回值的Promise对象。 | +| 类型 | 说明 | +| -------- | -------- | +| Promise<void> | 无返回值的Promise对象。 | **错误码:** @@ -1903,5 +1907,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