未验证 提交 ce1e1a37 编写于 作者: 葛亚芳 提交者: Gitee

update zh-cn/application-dev/reference/apis/js-apis-usb.md.

Signed-off-by: N@ge-yafang <geyafang@huawei.com>
上级 cbfc189f
......@@ -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&lt;boolean&gt;
**示例:**
```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)}`);
});
```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册