From 6ec4fb554197eeef96d07e74d611e4e682119310 Mon Sep 17 00:00:00 2001 From: wangkai Date: Thu, 7 Jul 2022 14:03:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8C=87=E5=AF=BC=E6=96=87=E6=A1=A3=E6=9B=B4?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wangkai --- .../apis/js-apis-distributed-data.md | 27 ------------------- 1 file changed, 27 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-distributed-data.md b/zh-cn/application-dev/reference/apis/js-apis-distributed-data.md index 6df0ccab82..7b6e3d65cb 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-distributed-data.md +++ b/zh-cn/application-dev/reference/apis/js-apis-distributed-data.md @@ -94,33 +94,6 @@ export default class MyAbilityStage extends AbilityStage { } } ``` -3)在前两种场景下,切换area时的处理。 -```js -import AbilityStage from '@ohos.application.Ability'; -let kvManager; -export default class MyAbilityStage extends AbilityStage { - doSwapArea() { - this.context.area = 1 - let context = this.context - const kvManagerConfig = { - context : context, - bundleName : 'com.example.datamanagertest', - userInfo : { - userId : '0', - userType : distributedData.UserType.SAME_USER_ID - } - } - distributedData.createKVManager(kvManagerConfig, function (err, manager) { - if (err) { - console.log("createKVManager err: " + JSON.stringify(err)); - return; - } - console.log("createKVManager success"); - kvManager = manager; - }); - } -} -``` ## distributedData.createKVManager -- GitLab