diff --git a/zh-cn/application-dev/reference/apis/js-apis-resourceschedule-deviceStandby.md b/zh-cn/application-dev/reference/apis/js-apis-resourceschedule-deviceStandby.md index 194843a30054daea9b73dad02a2fcbc466cc9c0a..c7a680f3562542be9bfdfa3abb55c2f2e1192e9b 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-resourceschedule-deviceStandby.md +++ b/zh-cn/application-dev/reference/apis/js-apis-resourceschedule-deviceStandby.md @@ -40,6 +40,7 @@ isDeviceInStandby(callback: AsyncCallback<boolean>): void; | 18700001 | Caller information verification failed. | **示例**: + ```js try{ deviceStandby.isDeviceInStandby((err, res) => { @@ -83,6 +84,7 @@ isDeviceInStandby(): Promise<boolean> | 18700001 | Caller information verification failed. | **示例**: + ```js try{ deviceStandby.isDeviceInStandby().then( res => { @@ -127,6 +129,7 @@ getExemptedApps(resourceTypes: number, callback: AsyncCallback { @@ -184,6 +187,7 @@ getExemptedApps(resourceTypes: number): Promise; | 18700001 | Caller information verification failed. | **示例**: + ```js try{ deviceStandby.getExemptedApps(resourceTypes).then( res => { @@ -230,6 +234,7 @@ requestExemptionResource(request: ResourceRequest): void; | 18700001 | Caller information verification failed. | **示例**: + ```js let resRequest = { resourceTypes: 1, @@ -294,6 +299,7 @@ releaseExemptionResource(request: ResourceRequest): void; | 18700001 | Caller information verification failed. | **示例**: + ```js let resRequest = { resourceTypes: 1,