提交 f003d458 编写于 作者: G ge-yafang

update docs

Signed-off-by: Nge-yafang <geyafang@huawei.com>
上级 a60db391
......@@ -2522,7 +2522,7 @@ class myAbility extends Ability {
### loadContent<sup>9+</sup>
loadContent(path: string, storage: LocalStorage): Promise&lt;void&gt;
loadContent(path: string, storage?: LocalStorage): Promise&lt;void&gt;
为当前WindowStage的主窗口加载与LocalStorage相关联的具体页面内容,使用Promise异步回调。
......@@ -2535,7 +2535,7 @@ loadContent(path: string, storage: LocalStorage): Promise&lt;void&gt;
| 参数名 | 类型 | 必填 | 说明 |
| ------- | -------------------------------------------- | ---- | ------------------------------------------------------------ |
| path | string | 是 | 设置加载页面的路径。 |
| storage | [LocalStorage](../ui/ui-ts-local-storage.md) | | 存储单元,为应用程序范围内的可变状态属性和非可变状态属性提供存储。 |
| storage | [LocalStorage](../ui/ui-ts-local-storage.md) | | 存储单元,为应用程序范围内的可变状态属性和非可变状态属性提供存储。 |
**返回值:**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册