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

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

Signed-off-by: Nge-yafang <geyafang@huawei.com>
上级 ac57e9c8
...@@ -488,7 +488,7 @@ getAllKVStoreId(appId: string): Promise&lt;string[]&gt; ...@@ -488,7 +488,7 @@ getAllKVStoreId(appId: string): Promise&lt;string[]&gt;
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);
} }
``` ```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册