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 a89b8c5a154bd1924cbc8b3ab3d0d1808ab9a86f..f8a0134e8a27bb917fcda98fa0d10b1198e3b32d 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 订阅网络能力变化事件。