From ce1e1a379a27d626d20904be051303ba20abaa7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=91=9B=E4=BA=9A=E8=8A=B3?= Date: Fri, 22 Jul 2022 06:44:56 +0000 Subject: [PATCH] update zh-cn/application-dev/reference/apis/js-apis-usb.md. Signed-off-by: @ge-yafang --- zh-cn/application-dev/reference/apis/js-apis-usb.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-usb.md b/zh-cn/application-dev/reference/apis/js-apis-usb.md index 6f3b930ad6..2b7e9a2521 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-usb.md +++ b/zh-cn/application-dev/reference/apis/js-apis-usb.md @@ -130,8 +130,8 @@ hasRight(deviceName: string): boolean **示例:** ```js - let divicesName="1-1"; - let bool = usb.hasRight(divicesName); + let devicesName="1-1"; + let bool = usb.hasRight(devicesName); console.log(bool); ``` @@ -156,8 +156,8 @@ requestRight(deviceName: string): Promise<boolean> **示例:** ```js - let divicesName="1-1"; - usb.requestRight(divicesName).then((ret) => { + let devicesName="1-1"; + usb.requestRight(devicesName).then((ret) => { console.log(`requestRight = ${JSON.stringify(ret)}`); }); ``` -- GitLab