未验证 提交 8306f493 编写于 作者: L LiAn 提交者: Gitee

update zh-cn/application-dev/reference/arkui-ts/ts-state-management.md.

Signed-off-by: NLiAn <lian15@huawei.com>
Signed-off-by: NLiAn <lian15@huawei.com>
上级 86521f8d
...@@ -261,7 +261,7 @@ IsMutable(propName: string): boolean ...@@ -261,7 +261,7 @@ IsMutable(propName: string): boolean
| boolean | 返回此属性是否存在并且是否可以改变。 | | boolean | 返回此属性是否存在并且是否可以改变。 |
```ts ```ts
let simple = AppStorage.IsMutable() let simple = AppStorage.IsMutable('simpleProp')
``` ```
### Size ### Size
...@@ -643,7 +643,7 @@ PersistProps(properties: {key: string, defaultValue: any}[]): void; ...@@ -643,7 +643,7 @@ PersistProps(properties: {key: string, defaultValue: any}[]): void;
| key | {key: string, defaultValue: any}[] | 是 | 要关联的属性数组。 | | key | {key: string, defaultValue: any}[] | 是 | 要关联的属性数组。 |
```ts ```ts
PersistentStorage.PersistProps([{'highScore', '0'},{'wightScore','1'}]) PersistentStorage.PersistProps([{key: 'highScore', defaultValue: '0'},{key: 'wightScore',defaultValue: '1'}])
``` ```
### Keys ### Keys
...@@ -725,7 +725,7 @@ EnvProps(props: {key: string, defaultValue: any}[]): void ...@@ -725,7 +725,7 @@ EnvProps(props: {key: string, defaultValue: any}[]): void
| key | {key: string, defaultValue: any}[] | 是 | 要关联的属性数组。 | 要关联的属性数组。 | | key | {key: string, defaultValue: any}[] | 是 | 要关联的属性数组。 | 要关联的属性数组。 |
```ts ```ts
Environment.EnvProps([{'accessibilityEnabled', 'default'},{'accessibilityUnEnabled','undefault'}]) Environment.EnvProps([{key: 'accessibilityEnabled', defaultValue: 'default'},{key: 'accessibilityUnEnabled', defaultValue: 'undefault'}])
``` ```
### Keys ### Keys
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册