Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
d1ce8787
D
Docs
项目概览
OpenHarmony
/
Docs
大约 1 年 前同步成功
通知
159
Star
292
Fork
28
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
Docs
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
d1ce8787
编写于
7月 22, 2022
作者:
O
openharmony_ci
提交者:
Gitee
7月 22, 2022
浏览文件
操作
浏览文件
下载
差异文件
!7044 3.1elease分支:拼写错误修改,无需翻译
Merge pull request !7044 from 葛亚芳/OpenHarmony-3.1-Release
上级
33fab349
54a841f5
变更
8
显示空白变更内容
内联
并排
Showing
8 changed file
with
18 addition
and
18 deletion
+18
-18
en/application-dev/reference/apis/js-apis-distributed-data.md
...pplication-dev/reference/apis/js-apis-distributed-data.md
+3
-3
en/application-dev/reference/apis/js-apis-usb.md
en/application-dev/reference/apis/js-apis-usb.md
+4
-4
en/application-dev/webgl/webgl-guidelines.md
en/application-dev/webgl/webgl-guidelines.md
+1
-1
zh-cn/application-dev/reference/apis/js-apis-distributed-data.md
...pplication-dev/reference/apis/js-apis-distributed-data.md
+3
-3
zh-cn/application-dev/reference/apis/js-apis-usb.md
zh-cn/application-dev/reference/apis/js-apis-usb.md
+4
-4
zh-cn/application-dev/reference/native-apis/_drawing.md
zh-cn/application-dev/reference/native-apis/_drawing.md
+1
-1
zh-cn/application-dev/reference/native-apis/drawing__bitmap_8h.md
...plication-dev/reference/native-apis/drawing__bitmap_8h.md
+1
-1
zh-cn/application-dev/webgl/webgl-guidelines.md
zh-cn/application-dev/webgl/webgl-guidelines.md
+1
-1
未找到文件。
en/application-dev/reference/apis/js-apis-distributed-data.md
浏览文件 @
d1ce8787
...
@@ -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
(
'
app
p
Id
'
).
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
(
'
GetSecurityLeve
l
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
(
'
GetSecurityLeve
l
e
'
+
e
);
}
}
```
```
...
...
en/application-dev/reference/apis/js-apis-usb.md
浏览文件 @
d1ce8787
...
@@ -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
d
i
vicesName
=
"
1-1
"
;
let
d
e
vicesName
=
"
1-1
"
;
let
bool
=
usb
.
hasRight
(
d
i
vicesName
);
let
bool
=
usb
.
hasRight
(
d
e
vicesName
);
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
d
i
vicesName
=
"
1-1
"
;
let
d
e
vicesName
=
"
1-1
"
;
usb
.
requestRight
(
d
i
vicesName
).
then
((
ret
)
=>
{
usb
.
requestRight
(
d
e
vicesName
).
then
((
ret
)
=>
{
console
.
log
(
`requestRight =
${
JSON
.
stringify
(
ret
)}
`
);
console
.
log
(
`requestRight =
${
JSON
.
stringify
(
ret
)}
`
);
});
});
```
```
...
...
en/application-dev/webgl/webgl-guidelines.md
浏览文件 @
d1ce8787
...
@@ -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 in
i
tialize shaders.');
return;
return;
}
}
...
...
zh-cn/application-dev/reference/apis/js-apis-distributed-data.md
浏览文件 @
d1ce8787
...
@@ -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
(
'
app
p
Id
'
).
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
(
'
GetSecurityLeve
l
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
(
'
GetSecurityLeve
l
e
'
+
e
);
}
}
```
```
...
...
zh-cn/application-dev/reference/apis/js-apis-usb.md
浏览文件 @
d1ce8787
...
@@ -130,8 +130,8 @@ hasRight(deviceName: string): boolean
...
@@ -130,8 +130,8 @@ hasRight(deviceName: string): boolean
**示例:**
**示例:**
```
js
```
js
let
d
i
vicesName
=
"
1-1
"
;
let
d
e
vicesName
=
"
1-1
"
;
let
bool
=
usb
.
hasRight
(
d
i
vicesName
);
let
bool
=
usb
.
hasRight
(
d
e
vicesName
);
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
d
i
vicesName
=
"
1-1
"
;
let
d
e
vicesName
=
"
1-1
"
;
usb
.
requestRight
(
d
i
vicesName
).
then
((
ret
)
=>
{
usb
.
requestRight
(
d
e
vicesName
).
then
((
ret
)
=>
{
console
.
log
(
`requestRight =
${
JSON
.
stringify
(
ret
)}
`
);
console
.
log
(
`requestRight =
${
JSON
.
stringify
(
ret
)}
`
);
});
});
```
```
...
...
zh-cn/application-dev/reference/native-apis/_drawing.md
浏览文件 @
d1ce8787
...
@@ -43,7 +43,7 @@ Drawing模块提供包括2D图形渲染、文字绘制和图片显示等功能
...
@@ -43,7 +43,7 @@ Drawing模块提供包括2D图形渲染、文字绘制和图片显示等功能
### Classes
### Classes
| Classe
Name | Description |
| Classe
s
Name | Description |
| -------- | -------- |
| -------- | -------- |
|
[
OH_Drawing_BitmapFormat
](
_o_h___drawing___bitmap_format.md
)
| 结构体用于描述位图像素的格式,包括颜色类型和透明度类型 |
|
[
OH_Drawing_BitmapFormat
](
_o_h___drawing___bitmap_format.md
)
| 结构体用于描述位图像素的格式,包括颜色类型和透明度类型 |
...
...
zh-cn/application-dev/reference/native-apis/drawing__bitmap_8h.md
浏览文件 @
d1ce8787
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
### Classes
### Classes
| Classe
Name | Description |
| Classe
s
Name | Description |
| -------- | -------- |
| -------- | -------- |
|
[
OH_Drawing_BitmapFormat
](
_o_h___drawing___bitmap_format.md
)
| 结构体用于描述位图像素的格式,包括颜色类型和透明度类型 |
|
[
OH_Drawing_BitmapFormat
](
_o_h___drawing___bitmap_format.md
)
| 结构体用于描述位图像素的格式,包括颜色类型和透明度类型 |
...
...
zh-cn/application-dev/webgl/webgl-guidelines.md
浏览文件 @
d1ce8787
...
@@ -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 in
i
tialize shaders.');
return;
return;
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录