Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
aecadb2a
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看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
aecadb2a
编写于
4月 13, 2023
作者:
O
openharmony_ci
提交者:
Gitee
4月 13, 2023
浏览文件
操作
浏览文件
下载
差异文件
!17256 3.2Release:KVStore描述及拼写错误修改
Merge pull request !17256 from 葛亚芳/OpenHarmony-3.2-Release
上级
37f927d2
8590c29d
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
97 addition
and
97 deletion
+97
-97
en/application-dev/napi/neural-network-runtime-guidelines.md
en/application-dev/napi/neural-network-runtime-guidelines.md
+1
-1
en/application-dev/reference/apis/js-apis-distributedKVStore.md
...lication-dev/reference/apis/js-apis-distributedKVStore.md
+35
-35
en/application-dev/reference/apis/js-apis-xml.md
en/application-dev/reference/apis/js-apis-xml.md
+11
-11
zh-cn/application-dev/database/data-sync-of-kv-store.md
zh-cn/application-dev/database/data-sync-of-kv-store.md
+1
-1
zh-cn/application-dev/napi/neural-network-runtime-guidelines.md
...application-dev/napi/neural-network-runtime-guidelines.md
+1
-1
zh-cn/application-dev/reference/apis/js-apis-distributedKVStore.md
...lication-dev/reference/apis/js-apis-distributedKVStore.md
+37
-37
zh-cn/application-dev/reference/apis/js-apis-xml.md
zh-cn/application-dev/reference/apis/js-apis-xml.md
+11
-11
未找到文件。
en/application-dev/napi/neural-network-runtime-guidelines.md
浏览文件 @
aecadb2a
...
...
@@ -244,7 +244,7 @@ The development process of the Neural Network Runtime consists of three phases:
// Create a compilation instance to pass the model to the underlying hardware for compilation.
OH_NNCompilation* compilation = OH_NNCompilation_Construct(model);
if (compilation == nullptr) {
std::cout << "CreateCompilation failed, error happen
d
ed when creating compilation." << std::endl;
std::cout << "CreateCompilation failed, error happened when creating compilation." << std::endl;
return OH_NN_MEMORY_ERROR;
}
...
...
en/application-dev/reference/apis/js-apis-distributedKVStore.md
浏览文件 @
aecadb2a
...
...
@@ -2736,7 +2736,7 @@ try {
console
.
error
(
`Fail to put Batch.code is
${
err
.
code
}
,message is
${
err
.
message
}
`
);
});
}
catch
(
e
)
{
console
.
error
(
`An unexpected error occured.code is
${
e
.
code
}
,message is
${
e
.
message
}
`
);
console
.
error
(
`An unexpected error occur
r
ed.code is
${
e
.
code
}
,message is
${
e
.
message
}
`
);
}
```
...
...
@@ -2785,7 +2785,7 @@ try {
});
});
}
catch
(
e
)
{
console
.
error
(
`An unexpected error occured.code is
${
e
.
code
}
,message is
${
e
.
message
}
`
)
console
.
error
(
`An unexpected error occur
r
ed.code is
${
e
.
code
}
,message is
${
e
.
message
}
`
)
}
```
...
...
@@ -2841,7 +2841,7 @@ try {
console
.
error
(
`Fail to get data.code is
${
err
.
code
}
,message is
${
err
.
message
}
`
);
});
}
catch
(
e
)
{
console
.
error
(
`An unexpected error occured.code is
${
e
.
code
}
,message is
${
e
.
message
}
`
)
console
.
error
(
`An unexpected error occur
r
ed.code is
${
e
.
code
}
,message is
${
e
.
message
}
`
)
}
```
...
...
@@ -3267,7 +3267,7 @@ try {
});
});
}
catch
(
e
)
{
console
.
error
(
`An unexpected error occured.code is
${
e
.
code
}
,message is
${
e
.
message
}
`
);
console
.
error
(
`An unexpected error occur
r
ed.code is
${
e
.
code
}
,message is
${
e
.
message
}
`
);
}
```
...
...
@@ -3335,7 +3335,7 @@ try {
console
.
error
(
`Fail to close resultset.code is
${
err
.
code
}
,message is
${
err
.
message
}
`
);
});
}
catch
(
e
)
{
console
.
error
(
`An unexpected error occured.code is
${
e
.
code
}
,message is
${
e
.
code
}
`
);
console
.
error
(
`An unexpected error occur
r
ed.code is
${
e
.
code
}
,message is
${
e
.
code
}
`
);
}
```
...
...
@@ -3398,7 +3398,7 @@ try {
});
});
}
catch
(
e
)
{
console
.
error
(
`An unexpected error occured.code is
${
e
.
code
}
,message is
${
e
.
message
}
`
);
console
.
error
(
`An unexpected error occur
r
ed.code is
${
e
.
code
}
,message is
${
e
.
message
}
`
);
}
```
...
...
@@ -3463,7 +3463,7 @@ try {
console
.
error
(
`Fail to get resultset.code is
${
err
.
code
}
,message is
${
err
.
message
}
`
);
});
}
catch
(
e
)
{
console
.
error
(
`An unexpected error occured.code is
${
e
.
code
}
,message is
${
e
.
code
}
`
);
console
.
error
(
`An unexpected error occur
r
ed.code is
${
e
.
code
}
,message is
${
e
.
code
}
`
);
}
```
...
...
@@ -3519,7 +3519,7 @@ try {
})
});
}
catch
(
e
)
{
console
.
error
(
`An unexpected error occured.code is
${
e
.
code
}
,message is
${
e
.
code
}
`
);
console
.
error
(
`An unexpected error occur
r
ed.code is
${
e
.
code
}
,message is
${
e
.
code
}
`
);
}
```
...
...
@@ -3576,7 +3576,7 @@ try {
console
.
error
(
`Fail to close resultset.code is
${
err
.
code
}
,message is
${
err
.
message
}
`
);
});
}
catch
(
e
)
{
console
.
error
(
`An unexpected error occured.code is
${
e
.
code
}
,message is
${
e
.
code
}
`
);
console
.
error
(
`An unexpected error occur
r
ed.code is
${
e
.
code
}
,message is
${
e
.
code
}
`
);
}
```
...
...
@@ -3609,7 +3609,7 @@ try {
}
});
}
catch
(
e
)
{
console
.
error
(
`An unexpected error occured.code is
${
e
.
code
}
,message is
${
e
.
code
}
`
);
console
.
error
(
`An unexpected error occur
r
ed.code is
${
e
.
code
}
,message is
${
e
.
code
}
`
);
}
```
...
...
@@ -3645,7 +3645,7 @@ try {
console
.
error
(
`Fail to close resultset.code is
${
err
.
code
}
,message is
${
err
.
message
}
`
);
});
}
catch
(
e
)
{
console
.
error
(
`An unexpected error occured.code is
${
e
.
code
}
,message is
${
e
.
code
}
`
);
console
.
error
(
`An unexpected error occur
r
ed.code is
${
e
.
code
}
,message is
${
e
.
code
}
`
);
}
```
...
...
@@ -3703,7 +3703,7 @@ try {
});
});
}
catch
(
e
)
{
console
.
error
(
`An unexpected error occured.code is
${
e
.
code
}
,message is
${
e
.
code
}
`
);
console
.
error
(
`An unexpected error occur
r
ed.code is
${
e
.
code
}
,message is
${
e
.
code
}
`
);
}
```
...
...
@@ -3766,7 +3766,7 @@ try {
console
.
error
(
`Fail to get result size.code is
${
err
.
code
}
,message is
${
err
.
message
}
`
);
});
}
catch
(
e
)
{
console
.
error
(
`An unexpected error occured.code is
${
e
.
code
}
,message is
${
e
.
code
}
`
);
console
.
error
(
`An unexpected error occur
r
ed.code is
${
e
.
code
}
,message is
${
e
.
code
}
`
);
}
```
...
...
@@ -4154,7 +4154,7 @@ try {
}
});
}
catch
(
e
)
{
console
.
error
(
`An unexpected error occured.code is
${
e
.
code
}
,message is
${
e
.
message
}
`
);
console
.
error
(
`An unexpected error occur
r
ed.code is
${
e
.
code
}
,message is
${
e
.
message
}
`
);
}
```
...
...
@@ -4191,7 +4191,7 @@ try {
console
.
error
(
`Fail to commit.code is
${
err
.
code
}
,message is
${
err
.
message
}
`
);
});
}
catch
(
e
)
{
console
.
error
(
`An unexpected error occured.ode is
${
e
.
code
}
,message is
${
e
.
message
}
`
);
console
.
error
(
`An unexpected error occur
r
ed.ode is
${
e
.
code
}
,message is
${
e
.
message
}
`
);
}
```
...
...
@@ -4230,7 +4230,7 @@ try {
}
});
}
catch
(
e
)
{
console
.
error
(
`An unexpected error occured.code is
${
e
.
code
}
,message is
${
e
.
message
}
`
);
console
.
error
(
`An unexpected error occur
r
ed.code is
${
e
.
code
}
,message is
${
e
.
message
}
`
);
}
```
...
...
@@ -4267,7 +4267,7 @@ try {
console
.
error
(
`Fail to rollback.code is
${
err
.
code
}
,message is
${
err
.
message
}
`
);
});
}
catch
(
e
)
{
console
.
error
(
`An unexpected error occured.code is
${
e
.
code
}
,message is
${
e
.
message
}
`
);
console
.
error
(
`An unexpected error occur
r
ed.code is
${
e
.
code
}
,message is
${
e
.
message
}
`
);
}
```
...
...
@@ -4299,7 +4299,7 @@ try {
}
});
}
catch
(
e
)
{
console
.
error
(
`An unexpected error occured.code is
${
e
.
code
}
,message is
${
e
.
message
}
`
);
console
.
error
(
`An unexpected error occur
r
ed.code is
${
e
.
code
}
,message is
${
e
.
message
}
`
);
}
```
...
...
@@ -4334,7 +4334,7 @@ try {
console
.
error
(
`Fail to enable sync.code is
${
err
.
code
}
,message is
${
err
.
message
}
`
);
});
}
catch
(
e
)
{
console
.
error
(
`An unexpected error occured.code is
${
e
.
code
}
,message is
${
e
.
message
}
`
);
console
.
error
(
`An unexpected error occur
r
ed.code is
${
e
.
code
}
,message is
${
e
.
message
}
`
);
}
```
...
...
@@ -4369,7 +4369,7 @@ try {
console
.
log
(
'
Succeeded in setting syncRange
'
);
});
}
catch
(
e
)
{
console
.
error
(
`An unexpected error occured.code is
${
e
.
code
}
,message is
${
e
.
message
}
`
);
console
.
error
(
`An unexpected error occur
r
ed.code is
${
e
.
code
}
,message is
${
e
.
message
}
`
);
}
```
...
...
@@ -4407,7 +4407,7 @@ try {
console
.
error
(
`Fail to set syncRange.code is
${
err
.
code
}
,message is
${
err
.
message
}
`
);
});
}
catch
(
e
)
{
console
.
error
(
`An unexpected error occured.code is
${
e
.
code
}
,message is
${
e
.
message
}
`
);
console
.
error
(
`An unexpected error occur
r
ed.code is
${
e
.
code
}
,message is
${
e
.
message
}
`
);
}
```
...
...
@@ -4440,7 +4440,7 @@ try {
console
.
log
(
'
Succeeded in setting syncParam
'
);
});
}
catch
(
e
)
{
console
.
error
(
`An unexpected error occured.code is
${
e
.
code
}
,message is
${
e
.
message
}
`
);
console
.
error
(
`An unexpected error occur
r
ed.code is
${
e
.
code
}
,message is
${
e
.
message
}
`
);
}
```
...
...
@@ -4476,7 +4476,7 @@ try {
console
.
error
(
`Fail to set syncParam.code is
${
err
.
code
}
,message is
${
err
.
message
}
`
);
});
}
catch
(
e
)
{
console
.
error
(
`An unexpected error occured.code is
${
e
.
code
}
,message is
${
e
.
message
}
`
);
console
.
error
(
`An unexpected error occur
r
ed.code is
${
e
.
code
}
,message is
${
e
.
message
}
`
);
}
```
...
...
@@ -4658,7 +4658,7 @@ try {
console
.
log
(
`dataChange callback call data:
${
data
}
`
);
});
}
catch
(
e
)
{
console
.
error
(
`An unexpected error occured.code is
${
e
.
code
}
,message is
${
e
.
message
}
`
);
console
.
error
(
`An unexpected error occur
r
ed.code is
${
e
.
code
}
,message is
${
e
.
message
}
`
);
}
```
...
...
@@ -4832,7 +4832,7 @@ try {
console
.
log
(
'
Succeeded in getting securityLevel
'
);
});
}
catch
(
e
)
{
console
.
error
(
`An unexpected error occured.code is
${
e
.
code
}
,message is
${
e
.
message
}
`
);
console
.
error
(
`An unexpected error occur
r
ed.code is
${
e
.
code
}
,message is
${
e
.
message
}
`
);
}
```
...
...
@@ -4869,7 +4869,7 @@ try {
console
.
error
(
`Fail to get SecurityLevel.code is
${
err
.
code
}
,message is
${
err
.
message
}
`
);
});
}
catch
(
e
)
{
console
.
error
(
`An unexpected error occured.code is
${
e
.
code
}
,message is
${
e
.
message
}
`
);
console
.
error
(
`An unexpected error occur
r
ed.code is
${
e
.
code
}
,message is
${
e
.
message
}
`
);
}
```
...
...
@@ -5678,7 +5678,7 @@ try {
});
});
}
catch
(
e
)
{
console
.
error
(
`An unexpected error occured.code is
${
e
.
code
}
,message is
${
e
.
message
}
`
);
console
.
error
(
`An unexpected error occur
r
ed.code is
${
e
.
code
}
,message is
${
e
.
message
}
`
);
}
```
...
...
@@ -5746,7 +5746,7 @@ try {
console
.
error
(
`Fail to close resultset.code is
${
err
.
code
}
,message is
${
err
.
message
}
`
);
});
}
catch
(
e
)
{
console
.
error
(
`An unexpected error occured.code is
${
e
.
code
}
,message is
${
e
.
code
}
`
);
console
.
error
(
`An unexpected error occur
r
ed.code is
${
e
.
code
}
,message is
${
e
.
code
}
`
);
}
```
...
...
@@ -6060,7 +6060,7 @@ try {
console
.
error
(
`Fail to get resultset.code is
${
err
.
code
}
,message is
${
err
.
message
}
`
);
});
}
catch
(
e
)
{
console
.
error
(
`An unexpected error occured.code is
${
e
.
code
}
,message is
${
e
.
code
}
`
);
console
.
error
(
`An unexpected error occur
r
ed.code is
${
e
.
code
}
,message is
${
e
.
code
}
`
);
}
```
...
...
@@ -6190,7 +6190,7 @@ try {
})
});
}
catch
(
e
)
{
console
.
error
(
`An unexpected error occured.code is
${
e
.
code
}
,message is
${
e
.
code
}
`
);
console
.
error
(
`An unexpected error occur
r
ed.code is
${
e
.
code
}
,message is
${
e
.
code
}
`
);
}
```
...
...
@@ -6247,7 +6247,7 @@ try {
console
.
error
(
`Fail to close resultset.code is
${
err
.
code
}
,message is
${
err
.
message
}
`
);
});
}
catch
(
e
)
{
console
.
error
(
`An unexpected error occured.code is
${
e
.
code
}
,message is
${
e
.
code
}
`
);
console
.
error
(
`An unexpected error occur
r
ed.code is
${
e
.
code
}
,message is
${
e
.
code
}
`
);
}
```
...
...
@@ -6304,7 +6304,7 @@ try {
})
});
}
catch
(
e
)
{
console
.
error
(
`An unexpected error occured.code is
${
e
.
code
}
,message is
${
e
.
code
}
`
);
console
.
error
(
`An unexpected error occur
r
ed.code is
${
e
.
code
}
,message is
${
e
.
code
}
`
);
}
```
...
...
@@ -6361,7 +6361,7 @@ try {
console
.
error
(
`Fail to close resultset.code is
${
err
.
code
}
,message is
${
err
.
message
}
`
);
});
}
catch
(
e
)
{
console
.
error
(
`An unexpected error occured.code is
${
e
.
code
}
,message is
${
e
.
code
}
`
);
console
.
error
(
`An unexpected error occur
r
ed.code is
${
e
.
code
}
,message is
${
e
.
code
}
`
);
}
```
...
...
@@ -6419,7 +6419,7 @@ try {
});
});
}
catch
(
e
)
{
console
.
error
(
`An unexpected error occured.code is
${
e
.
code
}
,message is
${
e
.
code
}
`
);
console
.
error
(
`An unexpected error occur
r
ed.code is
${
e
.
code
}
,message is
${
e
.
code
}
`
);
}
```
...
...
@@ -6482,7 +6482,7 @@ try {
console
.
error
(
`Fail to get result size.code is
${
err
.
code
}
,message is
${
err
.
message
}
`
);
});
}
catch
(
e
)
{
console
.
error
(
`An unexpected error occured.code is
${
e
.
code
}
,message is
${
e
.
code
}
`
);
console
.
error
(
`An unexpected error occur
r
ed.code is
${
e
.
code
}
,message is
${
e
.
code
}
`
);
}
```
...
...
en/application-dev/reference/apis/js-apis-xml.md
浏览文件 @
aecadb2a
...
...
@@ -457,7 +457,7 @@ function func(key, value){
arrTag
[
i
]
=
'
key:
'
+
key
+
'
value:
'
+
value
.
getDepth
();
str
+=
arrTag
[
i
];
i
++
;
return
true
;
// Determines whether to continu
e
ly parse, which is used to continue or terminate parsing.
return
true
;
// Determines whether to continu
al
ly parse, which is used to continue or terminate parsing.
}
let
options
=
{
supportDoctype
:
true
,
ignoreNameSpace
:
true
,
tokenValueCallbackFunction
:
func
}
that
.
parse
(
options
);
...
...
@@ -528,7 +528,7 @@ function func(key, value){
arrTag
[
i
]
=
'
key:
'
+
key
+
'
value:
'
+
value
.
getColumnNumber
();
str
+=
arrTag
[
i
];
i
++
;
return
true
;
// Determines whether to continu
e
ly parse, which is used to continue or terminate parsing.
return
true
;
// Determines whether to continu
al
ly parse, which is used to continue or terminate parsing.
}
let
options
=
{
supportDoctype
:
true
,
ignoreNameSpace
:
true
,
tokenValueCallbackFunction
:
func
}
that
.
parse
(
options
);
...
...
@@ -575,7 +575,7 @@ function func(key, value){
arrTag
[
i
]
=
'
key:
'
+
key
+
'
value:
'
+
value
.
getDepth
();
str
+=
arrTag
[
i
];
i
++
;
return
true
;
// Determines whether to continu
e
ly parse, which is used to continue or terminate parsing.
return
true
;
// Determines whether to continu
al
ly parse, which is used to continue or terminate parsing.
}
let
options
=
{
supportDoctype
:
true
,
ignoreNameSpace
:
true
,
tokenValueCallbackFunction
:
func
}
that
.
parse
(
options
);
...
...
@@ -625,7 +625,7 @@ function func(key, value){
arrTag
[
i
]
=
'
key:
'
+
key
+
'
value:
'
+
value
.
getLineNumber
();
str
+=
arrTag
[
i
];
i
++
;
return
true
;
// Determines whether to continu
e
ly parse, which is used to continue or terminate parsing.
return
true
;
// Determines whether to continu
al
ly parse, which is used to continue or terminate parsing.
}
let
options
=
{
supportDoctype
:
true
,
ignoreNameSpace
:
true
,
tokenValueCallbackFunction
:
func
}
that
.
parse
(
options
);
...
...
@@ -672,7 +672,7 @@ function func(key, value){
arrTag
[
i
]
=
'
key:
'
+
key
+
'
value:
'
+
value
.
getName
();
str
+=
arrTag
[
i
];
i
++
;
return
true
;
// Determines whether to continu
e
ly parse, which is used to continue or terminate parsing.
return
true
;
// Determines whether to continu
al
ly parse, which is used to continue or terminate parsing.
}
let
options
=
{
supportDoctype
:
true
,
ignoreNameSpace
:
true
,
tokenValueCallbackFunction
:
func
}
that
.
parse
(
options
);
...
...
@@ -718,7 +718,7 @@ function func(key, value){
arrTag
[
i
]
=
'
key:
'
+
key
+
'
value:
'
+
value
.
getNamespace
();
str
+=
arrTag
[
i
];
i
++
;
return
true
;
// Determines whether to continu
e
ly parse, which is used to continue or terminate parsing.
return
true
;
// Determines whether to continu
al
ly parse, which is used to continue or terminate parsing.
}
let
options
=
{
supportDoctype
:
true
,
ignoreNameSpace
:
true
,
tokenValueCallbackFunction
:
func
}
that
.
parse
(
options
);
...
...
@@ -764,7 +764,7 @@ function func(key, value){
arrTag
[
i
]
=
'
key:
'
+
key
+
'
value:
'
+
value
.
getPrefix
();
str
+=
arrTag
[
i
];
i
++
;
return
true
;
// Determines whether to continu
e
ly parse, which is used to continue or terminate parsing.
return
true
;
// Determines whether to continu
al
ly parse, which is used to continue or terminate parsing.
}
let
options
=
{
supportDoctype
:
true
,
ignoreNameSpace
:
true
,
tokenValueCallbackFunction
:
func
}
that
.
parse
(
options
);
...
...
@@ -811,7 +811,7 @@ function func(key, value){
arrTag
[
i
]
=
'
key:
'
+
key
+
'
value:
'
+
value
.
getText
();
str
+=
arrTag
[
i
];
i
++
;
return
true
;
// Determines whether to continu
e
ly parse, which is used to continue or terminate parsing.
return
true
;
// Determines whether to continu
al
ly parse, which is used to continue or terminate parsing.
}
let
options
=
{
supportDoctype
:
true
,
ignoreNameSpace
:
true
,
tokenValueCallbackFunction
:
func
}
that
.
parse
(
options
);
...
...
@@ -857,7 +857,7 @@ function func(key, value){
arrTag
[
i
]
=
'
key:
'
+
key
+
'
value:
'
+
value
.
isEmptyElementTag
();
str
+=
arrTag
[
i
];
i
++
;
return
true
;
// Determines whether to continu
e
ly parse, which is used to continue or terminate parsing.
return
true
;
// Determines whether to continu
al
ly parse, which is used to continue or terminate parsing.
}
let
options
=
{
supportDoctype
:
true
,
ignoreNameSpace
:
true
,
tokenValueCallbackFunction
:
func
}
that
.
parse
(
options
);
...
...
@@ -903,7 +903,7 @@ function func(key, value){
arrTag
[
i
]
=
'
key:
'
+
key
+
'
value:
'
+
value
.
isWhitespace
();
str
+=
arrTag
[
i
];
i
++
;
return
true
;
// Determines whether to continu
e
ly parse, which is used to continue or terminate parsing.
return
true
;
// Determines whether to continu
al
ly parse, which is used to continue or terminate parsing.
}
let
options
=
{
supportDoctype
:
true
,
ignoreNameSpace
:
true
,
tokenValueCallbackFunction
:
func
}
that
.
parse
(
options
);
...
...
@@ -948,7 +948,7 @@ function func(key, value){
arrTag
[
i
]
=
'
key:
'
+
key
+
'
value:
'
+
value
.
getAttributeCount
();
str
+=
arrTag
[
i
];
i
++
;
return
true
;
// Determines whether to continu
e
ly parse, which is used to continue or terminate parsing.
return
true
;
// Determines whether to continu
al
ly parse, which is used to continue or terminate parsing.
}
let
options
=
{
supportDoctype
:
true
,
ignoreNameSpace
:
true
,
tokenValueCallbackFunction
:
func
}
that
.
parse
(
options
);
...
...
zh-cn/application-dev/database/data-sync-of-kv-store.md
浏览文件 @
aecadb2a
...
...
@@ -185,7 +185,7 @@
console
.
info
(
`dataChange callback call data:
${
data
}
`
);
});
}
catch
(
e
)
{
console
.
error
(
`An unexpected error occured. code:
${
e
.
code
}
,message:
${
e
.
message
}
`
);
console
.
error
(
`An unexpected error occur
r
ed. code:
${
e
.
code
}
,message:
${
e
.
message
}
`
);
}
```
...
...
zh-cn/application-dev/napi/neural-network-runtime-guidelines.md
浏览文件 @
aecadb2a
...
...
@@ -244,7 +244,7 @@ Neural Network Runtime的开发流程主要包含**模型构造**、**模型编
// 创建编译实例,用于将模型传递至底层硬件编译
OH_NNCompilation* compilation = OH_NNCompilation_Construct(model);
if (compilation == nullptr) {
std::cout << "CreateCompilation failed, error happen
d
ed when creating compilation." << std::endl;
std::cout << "CreateCompilation failed, error happened when creating compilation." << std::endl;
return OH_NN_MEMORY_ERROR;
}
...
...
zh-cn/application-dev/reference/apis/js-apis-distributedKVStore.md
浏览文件 @
aecadb2a
...
...
@@ -2736,7 +2736,7 @@ try {
console
.
error
(
`Fail to put Batch.code is
${
err
.
code
}
,message is
${
err
.
message
}
`
);
});
}
catch
(
e
)
{
console
.
error
(
`An unexpected error occured.code is
${
e
.
code
}
,message is
${
e
.
message
}
`
);
console
.
error
(
`An unexpected error occur
r
ed.code is
${
e
.
code
}
,message is
${
e
.
message
}
`
);
}
```
...
...
@@ -2785,7 +2785,7 @@ try {
});
});
}
catch
(
e
)
{
console
.
error
(
`An unexpected error occured.code is
${
e
.
code
}
,message is
${
e
.
message
}
`
)
console
.
error
(
`An unexpected error occur
r
ed.code is
${
e
.
code
}
,message is
${
e
.
message
}
`
)
}
```
...
...
@@ -2841,7 +2841,7 @@ try {
console
.
error
(
`Fail to get data.code is
${
err
.
code
}
,message is
${
err
.
message
}
`
);
});
}
catch
(
e
)
{
console
.
error
(
`An unexpected error occured.code is
${
e
.
code
}
,message is
${
e
.
message
}
`
)
console
.
error
(
`An unexpected error occur
r
ed.code is
${
e
.
code
}
,message is
${
e
.
message
}
`
)
}
```
...
...
@@ -3267,7 +3267,7 @@ try {
});
});
}
catch
(
e
)
{
console
.
error
(
`An unexpected error occured.code is
${
e
.
code
}
,message is
${
e
.
message
}
`
);
console
.
error
(
`An unexpected error occur
r
ed.code is
${
e
.
code
}
,message is
${
e
.
message
}
`
);
}
```
...
...
@@ -3335,7 +3335,7 @@ try {
console
.
error
(
`Fail to close resultset.code is
${
err
.
code
}
,message is
${
err
.
message
}
`
);
});
}
catch
(
e
)
{
console
.
error
(
`An unexpected error occured.code is
${
e
.
code
}
,message is
${
e
.
code
}
`
);
console
.
error
(
`An unexpected error occur
r
ed.code is
${
e
.
code
}
,message is
${
e
.
code
}
`
);
}
```
...
...
@@ -3398,7 +3398,7 @@ try {
});
});
}
catch
(
e
)
{
console
.
error
(
`An unexpected error occured.code is
${
e
.
code
}
,message is
${
e
.
message
}
`
);
console
.
error
(
`An unexpected error occur
r
ed.code is
${
e
.
code
}
,message is
${
e
.
message
}
`
);
}
```
...
...
@@ -3463,7 +3463,7 @@ try {
console
.
error
(
`Fail to get resultset.code is
${
err
.
code
}
,message is
${
err
.
message
}
`
);
});
}
catch
(
e
)
{
console
.
error
(
`An unexpected error occured.code is
${
e
.
code
}
,message is
${
e
.
code
}
`
);
console
.
error
(
`An unexpected error occur
r
ed.code is
${
e
.
code
}
,message is
${
e
.
code
}
`
);
}
```
...
...
@@ -3519,7 +3519,7 @@ try {
})
});
}
catch
(
e
)
{
console
.
error
(
`An unexpected error occured.code is
${
e
.
code
}
,message is
${
e
.
code
}
`
);
console
.
error
(
`An unexpected error occur
r
ed.code is
${
e
.
code
}
,message is
${
e
.
code
}
`
);
}
```
...
...
@@ -3576,7 +3576,7 @@ try {
console
.
error
(
`Fail to close resultset.code is
${
err
.
code
}
,message is
${
err
.
message
}
`
);
});
}
catch
(
e
)
{
console
.
error
(
`An unexpected error occured.code is
${
e
.
code
}
,message is
${
e
.
code
}
`
);
console
.
error
(
`An unexpected error occur
r
ed.code is
${
e
.
code
}
,message is
${
e
.
code
}
`
);
}
```
...
...
@@ -3609,7 +3609,7 @@ try {
}
});
}
catch
(
e
)
{
console
.
error
(
`An unexpected error occured.code is
${
e
.
code
}
,message is
${
e
.
code
}
`
);
console
.
error
(
`An unexpected error occur
r
ed.code is
${
e
.
code
}
,message is
${
e
.
code
}
`
);
}
```
...
...
@@ -3645,7 +3645,7 @@ try {
console
.
error
(
`Fail to close resultset.code is
${
err
.
code
}
,message is
${
err
.
message
}
`
);
});
}
catch
(
e
)
{
console
.
error
(
`An unexpected error occured.code is
${
e
.
code
}
,message is
${
e
.
code
}
`
);
console
.
error
(
`An unexpected error occur
r
ed.code is
${
e
.
code
}
,message is
${
e
.
code
}
`
);
}
```
...
...
@@ -3703,7 +3703,7 @@ try {
});
});
}
catch
(
e
)
{
console
.
error
(
`An unexpected error occured.code is
${
e
.
code
}
,message is
${
e
.
code
}
`
);
console
.
error
(
`An unexpected error occur
r
ed.code is
${
e
.
code
}
,message is
${
e
.
code
}
`
);
}
```
...
...
@@ -3766,7 +3766,7 @@ try {
console
.
error
(
`Fail to get result size.code is
${
err
.
code
}
,message is
${
err
.
message
}
`
);
});
}
catch
(
e
)
{
console
.
error
(
`An unexpected error occured.code is
${
e
.
code
}
,message is
${
e
.
code
}
`
);
console
.
error
(
`An unexpected error occur
r
ed.code is
${
e
.
code
}
,message is
${
e
.
code
}
`
);
}
```
...
...
@@ -4154,7 +4154,7 @@ try {
}
});
}
catch
(
e
)
{
console
.
error
(
`An unexpected error occured.code is
${
e
.
code
}
,message is
${
e
.
message
}
`
);
console
.
error
(
`An unexpected error occur
r
ed.code is
${
e
.
code
}
,message is
${
e
.
message
}
`
);
}
```
...
...
@@ -4191,7 +4191,7 @@ try {
console
.
error
(
`Fail to commit.code is
${
err
.
code
}
,message is
${
err
.
message
}
`
);
});
}
catch
(
e
)
{
console
.
error
(
`An unexpected error occured.ode is
${
e
.
code
}
,message is
${
e
.
message
}
`
);
console
.
error
(
`An unexpected error occur
r
ed.ode is
${
e
.
code
}
,message is
${
e
.
message
}
`
);
}
```
...
...
@@ -4230,7 +4230,7 @@ try {
}
});
}
catch
(
e
)
{
console
.
error
(
`An unexpected error occured.code is
${
e
.
code
}
,message is
${
e
.
message
}
`
);
console
.
error
(
`An unexpected error occur
r
ed.code is
${
e
.
code
}
,message is
${
e
.
message
}
`
);
}
```
...
...
@@ -4267,7 +4267,7 @@ try {
console
.
error
(
`Fail to rollback.code is
${
err
.
code
}
,message is
${
err
.
message
}
`
);
});
}
catch
(
e
)
{
console
.
error
(
`An unexpected error occured.code is
${
e
.
code
}
,message is
${
e
.
message
}
`
);
console
.
error
(
`An unexpected error occur
r
ed.code is
${
e
.
code
}
,message is
${
e
.
message
}
`
);
}
```
...
...
@@ -4299,7 +4299,7 @@ try {
}
});
}
catch
(
e
)
{
console
.
error
(
`An unexpected error occured.code is
${
e
.
code
}
,message is
${
e
.
message
}
`
);
console
.
error
(
`An unexpected error occur
r
ed.code is
${
e
.
code
}
,message is
${
e
.
message
}
`
);
}
```
...
...
@@ -4334,7 +4334,7 @@ try {
console
.
error
(
`Fail to enable sync.code is
${
err
.
code
}
,message is
${
err
.
message
}
`
);
});
}
catch
(
e
)
{
console
.
error
(
`An unexpected error occured.code is
${
e
.
code
}
,message is
${
e
.
message
}
`
);
console
.
error
(
`An unexpected error occur
r
ed.code is
${
e
.
code
}
,message is
${
e
.
message
}
`
);
}
```
...
...
@@ -4369,7 +4369,7 @@ try {
console
.
log
(
'
Succeeded in setting syncRange
'
);
});
}
catch
(
e
)
{
console
.
error
(
`An unexpected error occured.code is
${
e
.
code
}
,message is
${
e
.
message
}
`
);
console
.
error
(
`An unexpected error occur
r
ed.code is
${
e
.
code
}
,message is
${
e
.
message
}
`
);
}
```
...
...
@@ -4407,7 +4407,7 @@ try {
console
.
error
(
`Fail to set syncRange.code is
${
err
.
code
}
,message is
${
err
.
message
}
`
);
});
}
catch
(
e
)
{
console
.
error
(
`An unexpected error occured.code is
${
e
.
code
}
,message is
${
e
.
message
}
`
);
console
.
error
(
`An unexpected error occur
r
ed.code is
${
e
.
code
}
,message is
${
e
.
message
}
`
);
}
```
...
...
@@ -4440,7 +4440,7 @@ try {
console
.
log
(
'
Succeeded in setting syncParam
'
);
});
}
catch
(
e
)
{
console
.
error
(
`An unexpected error occured.code is
${
e
.
code
}
,message is
${
e
.
message
}
`
);
console
.
error
(
`An unexpected error occur
r
ed.code is
${
e
.
code
}
,message is
${
e
.
message
}
`
);
}
```
...
...
@@ -4476,7 +4476,7 @@ try {
console
.
error
(
`Fail to set syncParam.code is
${
err
.
code
}
,message is
${
err
.
message
}
`
);
});
}
catch
(
e
)
{
console
.
error
(
`An unexpected error occured.code is
${
e
.
code
}
,message is
${
e
.
message
}
`
);
console
.
error
(
`An unexpected error occur
r
ed.code is
${
e
.
code
}
,message is
${
e
.
message
}
`
);
}
```
...
...
@@ -4484,7 +4484,7 @@ try {
sync(deviceIds: string[], mode: SyncMode, delayMs?: number): void
在手动同步方式下,触发数据库同步。关于
分布式数据服务
的同步方式说明,请见
[
键值型数据库跨设备数据同步
](
../../database/data-sync-of-kv-store.md
)
。
在手动同步方式下,触发数据库同步。关于
键值型数据库
的同步方式说明,请见
[
键值型数据库跨设备数据同步
](
../../database/data-sync-of-kv-store.md
)
。
> **说明:**
>
> 其中deviceIds通过调用[deviceManager.getTrustedDeviceListSync](js-apis-device-manager.md#gettrusteddevicelistsync)方法得到。deviceManager模块的接口均为系统接口,仅系统应用可用。
...
...
@@ -4554,7 +4554,7 @@ deviceManager.createDeviceManager('bundleName', (err, value) => {
sync(deviceIds: string[], query: Query, mode: SyncMode, delayMs?: number): void
在手动同步方式下,触发数据库同步,此方法为同步方法。关于
分布式数据服务
的同步方式说明,请见
[
键值型数据库跨设备数据同步
](
../../database/data-sync-of-kv-store.md
)
。
在手动同步方式下,触发数据库同步,此方法为同步方法。关于
键值型数据库
的同步方式说明,请见
[
键值型数据库跨设备数据同步
](
../../database/data-sync-of-kv-store.md
)
。
> **说明:**
>
> 其中deviceIds通过调用[deviceManager.getTrustedDeviceListSync](js-apis-device-manager.md#gettrusteddevicelistsync)方法得到。deviceManager模块的接口均为系统接口,仅系统应用可用。
...
...
@@ -4658,7 +4658,7 @@ try {
console
.
log
(
`dataChange callback call data:
${
data
}
`
);
});
}
catch
(
e
)
{
console
.
error
(
`An unexpected error occured.code is
${
e
.
code
}
,message is
${
e
.
message
}
`
);
console
.
error
(
`An unexpected error occur
r
ed.code is
${
e
.
code
}
,message is
${
e
.
message
}
`
);
}
```
...
...
@@ -4832,7 +4832,7 @@ try {
console
.
log
(
'
Succeeded in getting securityLevel
'
);
});
}
catch
(
e
)
{
console
.
error
(
`An unexpected error occured.code is
${
e
.
code
}
,message is
${
e
.
message
}
`
);
console
.
error
(
`An unexpected error occur
r
ed.code is
${
e
.
code
}
,message is
${
e
.
message
}
`
);
}
```
...
...
@@ -4869,7 +4869,7 @@ try {
console
.
error
(
`Fail to get SecurityLevel.code is
${
err
.
code
}
,message is
${
err
.
message
}
`
);
});
}
catch
(
e
)
{
console
.
error
(
`An unexpected error occured.code is
${
e
.
code
}
,message is
${
e
.
message
}
`
);
console
.
error
(
`An unexpected error occur
r
ed.code is
${
e
.
code
}
,message is
${
e
.
message
}
`
);
}
```
...
...
@@ -5678,7 +5678,7 @@ try {
});
});
}
catch
(
e
)
{
console
.
error
(
`An unexpected error occured.code is
${
e
.
code
}
,message is
${
e
.
message
}
`
);
console
.
error
(
`An unexpected error occur
r
ed.code is
${
e
.
code
}
,message is
${
e
.
message
}
`
);
}
```
...
...
@@ -5746,7 +5746,7 @@ try {
console
.
error
(
`Fail to close resultset.code is
${
err
.
code
}
,message is
${
err
.
message
}
`
);
});
}
catch
(
e
)
{
console
.
error
(
`An unexpected error occured.code is
${
e
.
code
}
,message is
${
e
.
code
}
`
);
console
.
error
(
`An unexpected error occur
r
ed.code is
${
e
.
code
}
,message is
${
e
.
code
}
`
);
}
```
...
...
@@ -6060,7 +6060,7 @@ try {
console
.
error
(
`Fail to get resultset.code is
${
err
.
code
}
,message is
${
err
.
message
}
`
);
});
}
catch
(
e
)
{
console
.
error
(
`An unexpected error occured.code is
${
e
.
code
}
,message is
${
e
.
code
}
`
);
console
.
error
(
`An unexpected error occur
r
ed.code is
${
e
.
code
}
,message is
${
e
.
code
}
`
);
}
```
...
...
@@ -6190,7 +6190,7 @@ try {
})
});
}
catch
(
e
)
{
console
.
error
(
`An unexpected error occured.code is
${
e
.
code
}
,message is
${
e
.
code
}
`
);
console
.
error
(
`An unexpected error occur
r
ed.code is
${
e
.
code
}
,message is
${
e
.
code
}
`
);
}
```
...
...
@@ -6247,7 +6247,7 @@ try {
console
.
error
(
`Fail to close resultset.code is
${
err
.
code
}
,message is
${
err
.
message
}
`
);
});
}
catch
(
e
)
{
console
.
error
(
`An unexpected error occured.code is
${
e
.
code
}
,message is
${
e
.
code
}
`
);
console
.
error
(
`An unexpected error occur
r
ed.code is
${
e
.
code
}
,message is
${
e
.
code
}
`
);
}
```
...
...
@@ -6304,7 +6304,7 @@ try {
})
});
}
catch
(
e
)
{
console
.
error
(
`An unexpected error occured.code is
${
e
.
code
}
,message is
${
e
.
code
}
`
);
console
.
error
(
`An unexpected error occur
r
ed.code is
${
e
.
code
}
,message is
${
e
.
code
}
`
);
}
```
...
...
@@ -6361,7 +6361,7 @@ try {
console
.
error
(
`Fail to close resultset.code is
${
err
.
code
}
,message is
${
err
.
message
}
`
);
});
}
catch
(
e
)
{
console
.
error
(
`An unexpected error occured.code is
${
e
.
code
}
,message is
${
e
.
code
}
`
);
console
.
error
(
`An unexpected error occur
r
ed.code is
${
e
.
code
}
,message is
${
e
.
code
}
`
);
}
```
...
...
@@ -6419,7 +6419,7 @@ try {
});
});
}
catch
(
e
)
{
console
.
error
(
`An unexpected error occured.code is
${
e
.
code
}
,message is
${
e
.
code
}
`
);
console
.
error
(
`An unexpected error occur
r
ed.code is
${
e
.
code
}
,message is
${
e
.
code
}
`
);
}
```
...
...
@@ -6482,7 +6482,7 @@ try {
console
.
error
(
`Fail to get result size.code is
${
err
.
code
}
,message is
${
err
.
message
}
`
);
});
}
catch
(
e
)
{
console
.
error
(
`An unexpected error occured.code is
${
e
.
code
}
,message is
${
e
.
code
}
`
);
console
.
error
(
`An unexpected error occur
r
ed.code is
${
e
.
code
}
,message is
${
e
.
code
}
`
);
}
```
...
...
zh-cn/application-dev/reference/apis/js-apis-xml.md
浏览文件 @
aecadb2a
...
...
@@ -456,7 +456,7 @@ function func(key, value){
arrTag
[
i
]
=
'
key:
'
+
key
+
'
value:
'
+
value
.
getDepth
();
str
+=
arrTag
[
i
];
i
++
;
return
true
;
// Determines whether to continu
e
ly parse, which is used to continue or terminate parsing.
return
true
;
// Determines whether to continu
al
ly parse, which is used to continue or terminate parsing.
}
let
options
=
{
supportDoctype
:
true
,
ignoreNameSpace
:
true
,
tokenValueCallbackFunction
:
func
}
that
.
parse
(
options
);
...
...
@@ -527,7 +527,7 @@ function func(key, value){
arrTag
[
i
]
=
'
key:
'
+
key
+
'
value:
'
+
value
.
getColumnNumber
();
str
+=
arrTag
[
i
];
i
++
;
return
true
;
// Determines whether to continu
e
ly parse, which is used to continue or terminate parsing.
return
true
;
// Determines whether to continu
al
ly parse, which is used to continue or terminate parsing.
}
let
options
=
{
supportDoctype
:
true
,
ignoreNameSpace
:
true
,
tokenValueCallbackFunction
:
func
}
that
.
parse
(
options
);
...
...
@@ -574,7 +574,7 @@ function func(key, value){
arrTag
[
i
]
=
'
key:
'
+
key
+
'
value:
'
+
value
.
getDepth
();
str
+=
arrTag
[
i
];
i
++
;
return
true
;
// Determines whether to continu
e
ly parse, which is used to continue or terminate parsing.
return
true
;
// Determines whether to continu
al
ly parse, which is used to continue or terminate parsing.
}
let
options
=
{
supportDoctype
:
true
,
ignoreNameSpace
:
true
,
tokenValueCallbackFunction
:
func
}
that
.
parse
(
options
);
...
...
@@ -624,7 +624,7 @@ function func(key, value){
arrTag
[
i
]
=
'
key:
'
+
key
+
'
value:
'
+
value
.
getLineNumber
();
str
+=
arrTag
[
i
];
i
++
;
return
true
;
// Determines whether to continu
e
ly parse, which is used to continue or terminate parsing.
return
true
;
// Determines whether to continu
al
ly parse, which is used to continue or terminate parsing.
}
let
options
=
{
supportDoctype
:
true
,
ignoreNameSpace
:
true
,
tokenValueCallbackFunction
:
func
}
that
.
parse
(
options
);
...
...
@@ -671,7 +671,7 @@ function func(key, value){
arrTag
[
i
]
=
'
key:
'
+
key
+
'
value:
'
+
value
.
getName
();
str
+=
arrTag
[
i
];
i
++
;
return
true
;
// Determines whether to continu
e
ly parse, which is used to continue or terminate parsing.
return
true
;
// Determines whether to continu
al
ly parse, which is used to continue or terminate parsing.
}
let
options
=
{
supportDoctype
:
true
,
ignoreNameSpace
:
true
,
tokenValueCallbackFunction
:
func
}
that
.
parse
(
options
);
...
...
@@ -717,7 +717,7 @@ function func(key, value){
arrTag
[
i
]
=
'
key:
'
+
key
+
'
value:
'
+
value
.
getNamespace
();
str
+=
arrTag
[
i
];
i
++
;
return
true
;
// Determines whether to continu
e
ly parse, which is used to continue or terminate parsing.
return
true
;
// Determines whether to continu
al
ly parse, which is used to continue or terminate parsing.
}
let
options
=
{
supportDoctype
:
true
,
ignoreNameSpace
:
true
,
tokenValueCallbackFunction
:
func
}
that
.
parse
(
options
);
...
...
@@ -763,7 +763,7 @@ function func(key, value){
arrTag
[
i
]
=
'
key:
'
+
key
+
'
value:
'
+
value
.
getPrefix
();
str
+=
arrTag
[
i
];
i
++
;
return
true
;
// Determines whether to continu
e
ly parse, which is used to continue or terminate parsing.
return
true
;
// Determines whether to continu
al
ly parse, which is used to continue or terminate parsing.
}
let
options
=
{
supportDoctype
:
true
,
ignoreNameSpace
:
true
,
tokenValueCallbackFunction
:
func
}
that
.
parse
(
options
);
...
...
@@ -810,7 +810,7 @@ function func(key, value){
arrTag
[
i
]
=
'
key:
'
+
key
+
'
value:
'
+
value
.
getText
();
str
+=
arrTag
[
i
];
i
++
;
return
true
;
// Determines whether to continu
e
ly parse, which is used to continue or terminate parsing.
return
true
;
// Determines whether to continu
al
ly parse, which is used to continue or terminate parsing.
}
let
options
=
{
supportDoctype
:
true
,
ignoreNameSpace
:
true
,
tokenValueCallbackFunction
:
func
}
that
.
parse
(
options
);
...
...
@@ -856,7 +856,7 @@ function func(key, value){
arrTag
[
i
]
=
'
key:
'
+
key
+
'
value:
'
+
value
.
isEmptyElementTag
();
str
+=
arrTag
[
i
];
i
++
;
return
true
;
// Determines whether to continu
e
ly parse, which is used to continue or terminate parsing.
return
true
;
// Determines whether to continu
al
ly parse, which is used to continue or terminate parsing.
}
let
options
=
{
supportDoctype
:
true
,
ignoreNameSpace
:
true
,
tokenValueCallbackFunction
:
func
}
that
.
parse
(
options
);
...
...
@@ -902,7 +902,7 @@ function func(key, value){
arrTag
[
i
]
=
'
key:
'
+
key
+
'
value:
'
+
value
.
isWhitespace
();
str
+=
arrTag
[
i
];
i
++
;
return
true
;
// Determines whether to continu
e
ly parse, which is used to continue or terminate parsing.
return
true
;
// Determines whether to continu
al
ly parse, which is used to continue or terminate parsing.
}
let
options
=
{
supportDoctype
:
true
,
ignoreNameSpace
:
true
,
tokenValueCallbackFunction
:
func
}
that
.
parse
(
options
);
...
...
@@ -947,7 +947,7 @@ function func(key, value){
arrTag
[
i
]
=
'
key:
'
+
key
+
'
value:
'
+
value
.
getAttributeCount
();
str
+=
arrTag
[
i
];
i
++
;
return
true
;
// Determines whether to continu
e
ly parse, which is used to continue or terminate parsing.
return
true
;
// Determines whether to continu
al
ly parse, which is used to continue or terminate parsing.
}
let
options
=
{
supportDoctype
:
true
,
ignoreNameSpace
:
true
,
tokenValueCallbackFunction
:
func
}
that
.
parse
(
options
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录