未验证 提交 d1ce8787 编写于 作者: O openharmony_ci 提交者: Gitee

!7044 3.1elease分支:拼写错误修改,无需翻译

Merge pull request !7044 from 葛亚芳/OpenHarmony-3.1-Release
...@@ -488,7 +488,7 @@ Obtains the IDs of all KV stores that are created by [getKVStore()](#getkvstore) ...@@ -488,7 +488,7 @@ Obtains the IDs of all KV stores that are created by [getKVStore()](#getkvstore)
let kvManager; let kvManager;
try { try {
console.log('GetAllKVStoreId'); console.log('GetAllKVStoreId');
kvManager.getAllKVStoreId('apppId').then((data) => { kvManager.getAllKVStoreId('appId').then((data) => {
console.log('getAllKVStoreId success'); console.log('getAllKVStoreId success');
console.log('size = ' + data.length); console.log('size = ' + data.length);
}).catch((err) => { }).catch((err) => {
...@@ -3887,7 +3887,7 @@ try { ...@@ -3887,7 +3887,7 @@ try {
console.log('getSecurityLevel success'); console.log('getSecurityLevel success');
}); });
}catch(e) { }catch(e) {
console.log('GetSecurityLeve e ' + e); console.log('GetSecurityLevel e ' + e);
} }
``` ```
...@@ -3917,7 +3917,7 @@ try { ...@@ -3917,7 +3917,7 @@ try {
console.log('getSecurityLevel fail ' + JSON.stringify(err)); console.log('getSecurityLevel fail ' + JSON.stringify(err));
}); });
}catch(e) { }catch(e) {
console.log('GetSecurityLeve e ' + e); console.log('GetSecurityLevel e ' + e);
} }
``` ```
......
...@@ -126,8 +126,8 @@ Checks whether the application has the permission to access the device. ...@@ -126,8 +126,8 @@ Checks whether the application has the permission to access the device.
- **Example** - **Example**
```js ```js
let divicesName="1-1"; let devicesName="1-1";
let bool = usb.hasRight(divicesName); let bool = usb.hasRight(devicesName);
console.log(bool); console.log(bool);
``` ```
...@@ -152,8 +152,8 @@ Requests the temporary permission for the application to access the USB device. ...@@ -152,8 +152,8 @@ Requests the temporary permission for the application to access the USB device.
- **Example** - **Example**
```js ```js
let divicesName="1-1"; let devicesName="1-1";
usb.requestRight(divicesName).then((ret) => { usb.requestRight(devicesName).then((ret) => {
console.log(`requestRight = ${JSON.stringify(ret)}`); console.log(`requestRight = ${JSON.stringify(ret)}`);
}); });
``` ```
......
...@@ -669,7 +669,7 @@ To use WebGL to draw a color triangle (GPU drawing), perform the following steps ...@@ -669,7 +669,7 @@ To use WebGL to draw a color triangle (GPU drawing), perform the following steps
// Initialize the shader. // Initialize the shader.
if (!initShaders(gl, VSHADER_SOURCE, FSHADER_SOURCE)) { if (!initShaders(gl, VSHADER_SOURCE, FSHADER_SOURCE)) {
console.log('Failed to intialize shaders.'); console.log('Failed to initialize shaders.');
return; return;
} }
......
...@@ -488,7 +488,7 @@ getAllKVStoreId(appId: string): Promise<string[]> ...@@ -488,7 +488,7 @@ getAllKVStoreId(appId: string): Promise<string[]>
let kvManager; let kvManager;
try { try {
console.log('GetAllKVStoreId'); console.log('GetAllKVStoreId');
kvManager.getAllKVStoreId('apppId').then((data) => { kvManager.getAllKVStoreId('appId').then((data) => {
console.log('getAllKVStoreId success'); console.log('getAllKVStoreId success');
console.log('size = ' + data.length); console.log('size = ' + data.length);
}).catch((err) => { }).catch((err) => {
...@@ -3887,7 +3887,7 @@ try { ...@@ -3887,7 +3887,7 @@ try {
console.log('getSecurityLevel success'); console.log('getSecurityLevel success');
}); });
}catch(e) { }catch(e) {
console.log('GetSecurityLeve e ' + e); console.log('GetSecurityLevel e ' + e);
} }
``` ```
...@@ -3917,7 +3917,7 @@ try { ...@@ -3917,7 +3917,7 @@ try {
console.log('getSecurityLevel fail ' + JSON.stringify(err)); console.log('getSecurityLevel fail ' + JSON.stringify(err));
}); });
}catch(e) { }catch(e) {
console.log('GetSecurityLeve e ' + e); console.log('GetSecurityLevel e ' + e);
} }
``` ```
......
...@@ -130,8 +130,8 @@ hasRight(deviceName: string): boolean ...@@ -130,8 +130,8 @@ hasRight(deviceName: string): boolean
**示例:** **示例:**
```js ```js
let divicesName="1-1"; let devicesName="1-1";
let bool = usb.hasRight(divicesName); let bool = usb.hasRight(devicesName);
console.log(bool); console.log(bool);
``` ```
...@@ -156,8 +156,8 @@ requestRight(deviceName: string): Promise<boolean> ...@@ -156,8 +156,8 @@ requestRight(deviceName: string): Promise<boolean>
**示例:** **示例:**
```js ```js
let divicesName="1-1"; let devicesName="1-1";
usb.requestRight(divicesName).then((ret) => { usb.requestRight(devicesName).then((ret) => {
console.log(`requestRight = ${JSON.stringify(ret)}`); console.log(`requestRight = ${JSON.stringify(ret)}`);
}); });
``` ```
......
...@@ -43,7 +43,7 @@ Drawing模块提供包括2D图形渲染、文字绘制和图片显示等功能 ...@@ -43,7 +43,7 @@ Drawing模块提供包括2D图形渲染、文字绘制和图片显示等功能
### Classes ### Classes
| Classe Name | Description | | Classes Name | Description |
| -------- | -------- | | -------- | -------- |
| [OH_Drawing_BitmapFormat](_o_h___drawing___bitmap_format.md) | 结构体用于描述位图像素的格式,包括颜色类型和透明度类型 | | [OH_Drawing_BitmapFormat](_o_h___drawing___bitmap_format.md) | 结构体用于描述位图像素的格式,包括颜色类型和透明度类型 |
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
### Classes ### Classes
| Classe Name | Description | | Classes Name | Description |
| -------- | -------- | | -------- | -------- |
| [OH_Drawing_BitmapFormat](_o_h___drawing___bitmap_format.md) | 结构体用于描述位图像素的格式,包括颜色类型和透明度类型 | | [OH_Drawing_BitmapFormat](_o_h___drawing___bitmap_format.md) | 结构体用于描述位图像素的格式,包括颜色类型和透明度类型 |
......
...@@ -669,7 +669,7 @@ WebGL主要帮助开发者在前端开发中完成图形图像的相关处理, ...@@ -669,7 +669,7 @@ WebGL主要帮助开发者在前端开发中完成图形图像的相关处理,
// 初始化着色器 // 初始化着色器
if (!initShaders(gl, VSHADER_SOURCE, FSHADER_SOURCE)) { if (!initShaders(gl, VSHADER_SOURCE, FSHADER_SOURCE)) {
console.log('Failed to intialize shaders.'); console.log('Failed to initialize shaders.');
return; return;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册