未验证 提交 b842abc4 编写于 作者: O openharmony_ci 提交者: Gitee

!11811 废弃staticClear

Merge pull request !11811 from houhaoyu/master
...@@ -232,6 +232,8 @@ staticClear(): boolean ...@@ -232,6 +232,8 @@ staticClear(): boolean
删除所有的属性。 删除所有的属性。
**该属性在api9上已废弃,使用Clear属性替代**
**返回值:** **返回值:**
| 类型 | 描述 | | 类型 | 描述 |
...@@ -242,6 +244,22 @@ staticClear(): boolean ...@@ -242,6 +244,22 @@ staticClear(): boolean
let simple = AppStorage.staticClear() let simple = AppStorage.staticClear()
``` ```
### Clear
Clear(): boolean
删除所有的属性。
**返回值:**
| 类型 | 描述 |
| ------- | ------------------------------------------------------------ |
| boolean | 删除所有的属性,如果当前有状态变量依旧引用此属性,返回false。 |
```typescript
let simple = AppStorage.Clear()
```
### IsMutable ### IsMutable
IsMutable(propName: string): boolean IsMutable(propName: string): boolean
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册