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 2d389adc26865033dfc559491499e37c01505b52..a488330246c1304b205b44471a07066955849d0c 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]。 |