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 6398c8500455323fe8437f4800b402cacf064800..b514f2afb2d0847419ac7615946a48b5ceb97f88 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 @@ -20,7 +20,7 @@ getInfo(options?: GetDeviceOptions): void 获取当前设备的信息。 -> **说明:** +> **说明:**
> 在首页的onShow生命周期之前不建议调用device.getInfo接口。 **系统能力:** SystemCapability.Startup.SystemInfo @@ -35,11 +35,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 | 否 | 接口调用结束的回调函数。 | @@ -47,7 +47,7 @@ getInfo(options?: GetDeviceOptions): void 设备信息。 -##系统能力:** SystemCapability.Startup.SystemInfo +**系统能力:** SystemCapability.Startup.SystemInfo | 名称 | 类型 | 说明 | | -------- | -------- | -------- |