From ce42ef61a06b2f3b480cbc9a6d4f8bd934ee498c Mon Sep 17 00:00:00 2001 From: LiAn Date: Tue, 1 Nov 2022 03:02:10 +0000 Subject: [PATCH] update zh-cn/application-dev/reference/arkui-ts/ts-state-management.md. Signed-off-by: LiAn Signed-off-by: LiAn --- .../reference/arkui-ts/ts-state-management.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-state-management.md b/zh-cn/application-dev/reference/arkui-ts/ts-state-management.md index c9f4cb0422..bd885a4818 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-state-management.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-state-management.md @@ -142,7 +142,7 @@ let simple = AppStorage.Get('simpleProp') ### Set -Set(propName: string, newValue: T): boolean +Set\(propName: string, newValue: T): boolean 对已保存的key值,替换其value值。 @@ -165,7 +165,7 @@ let simple = AppStorage.Set('simpleProp', 121); ### SetOrCreate -SetOrCreate(propName: string, newValue: T): void +SetOrCreate\(propName: string, newValue: T): void 创建或更新setOrCreate内部的值。 @@ -646,7 +646,7 @@ PersistentStorage.PersistProps([{'highScore', '0'},{'wightScore','1'}]) ### Keys -Keys(): Array +Keys(): Array\ 返回所有持久化属性的标记。 @@ -654,7 +654,7 @@ Keys(): Array | 类型 | 描述 | | ------------- | -------------------------- | -| Array | 返回所有持久化属性的标记。 | +| Array\ | 返回所有持久化属性的标记。 | ```ts let simple = PersistentStorage.Keys() @@ -728,7 +728,7 @@ Environment.EnvProps([{'accessibilityEnabled', 'default'},{'accessibilityUnEnabl ### Keys -Keys(): Array +Keys(): Array\ 返回关联的系统项。 @@ -736,7 +736,7 @@ Keys(): Array | 类型 | 描述 | | ------------- | ---------------------- | -| Array | 返回关联的系统项数组。 | +| Array\ | 返回关联的系统项数组。 | ```ts let simple = Environment.Keys() -- GitLab