From f4fa7258be12f505c9292d70cc9bb53051b94ead Mon Sep 17 00:00:00 2001 From: zengyawen Date: Thu, 23 Mar 2023 08:01:16 +0000 Subject: [PATCH] update zh-cn/application-dev/reference/apis/js-apis-system-device.md. Signed-off-by: zengyawen --- .../reference/apis/js-apis-system-device.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-system-device.md b/zh-cn/application-dev/reference/apis/js-apis-system-device.md index a27e11dd0d..4d9854c3ba 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-system-device.md +++ b/zh-cn/application-dev/reference/apis/js-apis-system-device.md @@ -19,7 +19,7 @@ getInfo(options?: GetDeviceOptions): void 获取当前设备的信息。 -> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** +> **说明:**
> 在首页的onShow生命周期之前不建议调用device.getInfo接口。 **系统能力:** SystemCapability.Startup.SystemInfo @@ -34,11 +34,11 @@ getInfo(options?: GetDeviceOptions): void 定义设备信息获取的参数选项。 -**系统能力: ** SystemCapability.Startup.SystemInfo +**系统能力:** SystemCapability.Startup.SystemInfo | 名称 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| success | (data:DeviceResponse)=> void | 否 | 接口调用成功的回调函数。 data为成功返回的设备信息,具体参考[DeviceResponse]。| +| success | (data:DeviceResponse)=> void | 否 | 接口调用成功的回调函数。 data为成功返回的设备信息,具体参考[DeviceResponse](#deviceresponse)。| | fail | (data:any,code:number)=> void | 否 | 接口调用失败的回调函数。 code为失败返回的错误码。
code:200,表示返回结果中存在无法获得的信息。| | complete | ()=> void | 否 | 接口调用结束的回调函数。 | @@ -46,7 +46,7 @@ getInfo(options?: GetDeviceOptions): void 设备信息。 -##系统能力:** SystemCapability.Startup.SystemInfo +**系统能力:** SystemCapability.Startup.SystemInfo | 名称 | 类型 | 说明 | | -------- | -------- | -------- | -- GitLab