From 697ab8a82bfbfa24351e9f6a3e5f7541b5f541f3 Mon Sep 17 00:00:00 2001 From: liyufan Date: Thu, 24 Aug 2023 14:24:56 +0800 Subject: [PATCH] fix error Signed-off-by: liyufan --- .../application-dev/reference/apis/js-apis-net-connection.md | 4 ++-- 1 file changed, 2 insertions(+), 2 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 a89b8c5a15..f8a0134e8a 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 @@ -847,7 +847,7 @@ connection.getDefaultNet().then(function (netHandle) { ## connection.getNetCapabilitiesSync10+ -getNetCapabilities(netHandle: NetHandle): NetCapabilities +getNetCapabilitiesSync(netHandle: NetHandle): NetCapabilities 获取netHandle对应的网络的能力信息,使用同步方式返回。 @@ -1614,7 +1614,7 @@ netCon.unregister(function (error) { ### on('netCapabilitiesChange')8+ -on(type: 'netCapabilitiesChange', callback: Callback): void +on(type: 'netCapabilitiesChange', callback: Callback\): void 订阅网络能力变化事件。 -- GitLab