From 321fa35285db09717a8152263c465bfc450279ff Mon Sep 17 00:00:00 2001 From: yfwang6 Date: Tue, 25 Apr 2023 14:46:02 +0800 Subject: [PATCH] wangyongfei6@huawei.com modify docs of localstorage Signed-off-by: yfwang6 --- zh-cn/application-dev/quick-start/arkts-localstorage.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zh-cn/application-dev/quick-start/arkts-localstorage.md b/zh-cn/application-dev/quick-start/arkts-localstorage.md index e7d0df5b2c..7318080420 100644 --- a/zh-cn/application-dev/quick-start/arkts-localstorage.md +++ b/zh-cn/application-dev/quick-start/arkts-localstorage.md @@ -35,7 +35,8 @@ LocalStorage根据与\@Component装饰的组件的的同步类型不同,提供 ## 限制条件 -LocalStorage创建后,命名属性的类型不可更改。后续调用Set时必须使用相同类型的值。 +- LocalStorage创建后,命名属性的类型不可更改。后续调用Set时必须使用相同类型的值。 +- LocalStorage是页面级存储,[GetShared](../reference/arkui-ts/ts-state-management.md#getshared9)接口仅能获取当前stage,通过[windowStage.loadContent](../reference/apis/js-apis-window.md#loadcontent9)传入的LocalStorage实例,否则返回undefined。例子可见[将LocalStorage实例从UIAbility共享到一个或多个视图](#将localstorage实例从uiability共享到一个或多个视图)。 ## \@LocalStorageProp -- GitLab