diff --git a/zh-cn/application-dev/ui/ui-ts-local-storage.md b/zh-cn/application-dev/ui/ui-ts-local-storage.md index 14123f748b1e4313103628450086f026c15ab8a0..02e927cb539e1ff478bb1942b9aa0a520db7dd9a 100644 --- a/zh-cn/application-dev/ui/ui-ts-local-storage.md +++ b/zh-cn/application-dev/ui/ui-ts-local-storage.md @@ -278,7 +278,7 @@ clear(): boolean ### 示例1(在一个Ability创建的LocalStorage) -```javascript +```ts import Ability from '@ohos.application.Ability' export default class MainAbility extends Ability { storage : LocalStorage