Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
181778cc
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看板
未验证
提交
181778cc
编写于
8月 29, 2023
作者:
O
openharmony_ci
提交者:
Gitee
8月 29, 2023
浏览文件
操作
浏览文件
下载
差异文件
!23373 ArkTS规范整改
Merge pull request !23373 from chenshixu1/master
上级
2598f82f
d4a52703
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
14 addition
and
14 deletion
+14
-14
zh-cn/application-dev/reference/apis/js-apis-system-parameter.md
...pplication-dev/reference/apis/js-apis-system-parameter.md
+7
-7
zh-cn/application-dev/reference/apis/js-apis-system-parameterEnhance.md
...ion-dev/reference/apis/js-apis-system-parameterEnhance.md
+7
-7
未找到文件。
zh-cn/application-dev/reference/apis/js-apis-system-parameter.md
浏览文件 @
181778cc
...
...
@@ -69,7 +69,7 @@ get(key: string, callback: AsyncCallback<string>): void
import
{
BusinessError
}
from
'
@ohos.base
'
;
try
{
systemparameter
.
get
(
"
const.ohos.apiversion
"
,
(
err
:
BusinessError
,
data
:
string
)
=>
{
systemparameter
.
get
(
"
const.ohos.apiversion
"
,
(
err
:
BusinessError
,
data
:
string
)
=>
{
if
(
err
==
undefined
)
{
console
.
log
(
"
get test.parameter.key value success:
"
+
data
)
}
else
{
...
...
@@ -102,7 +102,7 @@ get(key: string, def: string, callback: AsyncCallback<string>): void
import
{
BusinessError
}
from
'
@ohos.base
'
;
try
{
systemparameter
.
get
(
"
const.ohos.apiversion
"
,
"
default
"
,
(
err
:
BusinessError
,
data
:
string
)
=>
{
systemparameter
.
get
(
"
const.ohos.apiversion
"
,
"
default
"
,
(
err
:
BusinessError
,
data
:
string
)
=>
{
if
(
err
==
undefined
)
{
console
.
log
(
"
get test.parameter.key value success:
"
+
data
)
}
else
{
...
...
@@ -142,9 +142,9 @@ import { BusinessError } from '@ohos.base';
try
{
let
p
=
systemparameter
.
get
(
"
const.ohos.apiversion
"
);
p
.
then
((
value
:
string
)
=>
{
p
.
then
((
value
:
string
)
=>
{
console
.
log
(
"
get test.parameter.key success:
"
+
value
);
}).
catch
((
err
:
BusinessError
)
=>
{
}).
catch
((
err
:
BusinessError
)
=>
{
console
.
log
(
"
get test.parameter.key error:
"
+
err
.
code
);
});
}
catch
(
e
)
{
...
...
@@ -208,7 +208,7 @@ set(key: string, value: string, callback: AsyncCallback<void>): void
import
{
BusinessError
}
from
'
@ohos.base
'
;
try
{
systemparameter
.
set
(
"
test.parameter.key
"
,
"
testValue
"
,
(
err
:
BusinessError
,
data
:
string
)
=>
{
systemparameter
.
set
(
"
test.parameter.key
"
,
"
testValue
"
,
(
err
:
BusinessError
,
data
:
void
)
=>
{
if
(
err
==
undefined
)
{
console
.
log
(
"
set test.parameter.key value success :
"
+
data
)
}
else
{
...
...
@@ -251,9 +251,9 @@ import { BusinessError } from '@ohos.base';
try
{
let
p
=
systemparameter
.
set
(
"
test.parameter.key
"
,
"
testValue
"
);
p
.
then
((
value
:
string
)
=>
{
p
.
then
((
value
:
void
)
=>
{
console
.
log
(
"
set test.parameter.key success:
"
+
value
);
}).
catch
((
err
:
BusinessError
)
=>
{
}).
catch
((
err
:
BusinessError
)
=>
{
console
.
log
(
"
set test.parameter.key error:
"
+
err
.
code
);
});
}
catch
(
e
)
{
...
...
zh-cn/application-dev/reference/apis/js-apis-system-parameterEnhance.md
浏览文件 @
181778cc
...
...
@@ -68,7 +68,7 @@ get(key: string, callback: AsyncCallback<string>): void
import
{
BusinessError
}
from
'
@ohos.base
'
;
try
{
systemparameter
.
get
(
"
const.ohos.apiversion
"
,
(
err
:
BusinessError
,
data
:
string
)
=>
{
systemparameter
.
get
(
"
const.ohos.apiversion
"
,
(
err
:
BusinessError
,
data
:
string
)
=>
{
if
(
err
==
undefined
)
{
console
.
log
(
"
get test.parameter.key value success:
"
+
data
)
}
else
{
...
...
@@ -101,7 +101,7 @@ get(key: string, def: string, callback: AsyncCallback<string>): void
import
{
BusinessError
}
from
'
@ohos.base
'
;
try
{
systemparameter
.
get
(
"
const.ohos.apiversion
"
,
"
default
"
,
(
err
:
BusinessError
,
data
:
string
)
=>
{
systemparameter
.
get
(
"
const.ohos.apiversion
"
,
"
default
"
,
(
err
:
BusinessError
,
data
:
string
)
=>
{
if
(
err
==
undefined
)
{
console
.
log
(
"
get test.parameter.key value success:
"
+
data
)
}
else
{
...
...
@@ -141,9 +141,9 @@ import { BusinessError } from '@ohos.base';
try
{
let
p
=
systemparameter
.
get
(
"
const.ohos.apiversion
"
);
p
.
then
((
value
:
string
)
=>
{
p
.
then
((
value
:
string
)
=>
{
console
.
log
(
"
get test.parameter.key success:
"
+
value
);
}).
catch
((
err
:
BusinessError
)
=>
{
}).
catch
((
err
:
BusinessError
)
=>
{
console
.
log
(
"
get test.parameter.key error:
"
+
err
.
code
);
});
}
catch
(
e
)
{
...
...
@@ -200,7 +200,7 @@ set(key: string, value: string, callback: AsyncCallback<void>): void
import
{
BusinessError
}
from
'
@ohos.base
'
;
try
{
systemparameter
.
set
(
"
test.parameter.key
"
,
"
testValue
"
,
(
err
:
BusinessError
,
data
:
string
)
=>
{
systemparameter
.
set
(
"
test.parameter.key
"
,
"
testValue
"
,
(
err
:
BusinessError
,
data
:
void
)
=>
{
if
(
err
==
undefined
)
{
console
.
log
(
"
set test.parameter.key value success :
"
+
data
)
}
else
{
...
...
@@ -239,9 +239,9 @@ import { BusinessError } from '@ohos.base';
try
{
let
p
=
systemparameter
.
set
(
"
test.parameter.key
"
,
"
testValue
"
);
p
.
then
((
value
:
string
)
=>
{
p
.
then
((
value
:
void
)
=>
{
console
.
log
(
"
set test.parameter.key success:
"
+
value
);
}).
catch
((
err
:
BusinessError
)
=>
{
}).
catch
((
err
:
BusinessError
)
=>
{
console
.
log
(
"
set test.parameter.key error:
"
+
err
.
code
);
});
}
catch
(
e
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录