调用持久化存储后的Date方法getTime()出现报错Error message:is not callable Stacktrace: at anonymous (entry/src/main/ets/views/HomeView.ets:20:22) at aboutToAppear (entry/src/main/ets/views/HomeView.ets:17:7)
调用持久化存储后的Date方法getTime()出现报错Error message:is not callable Stacktrace: at anonymous (entry/src/main/ets/views/HomeView.ets:20:22) at aboutToAppear (entry/src/main/ets/views/HomeView.ets:17:7)
1 回答551 阅读✓ 已解决
1 回答558 阅读
1 回答505 阅读
1 回答400 阅读
502 阅读
433 阅读
PersistentStorage不支持对象数组,参考链接如下:
https://developer.huawei.com/consumer/cn/doc/harmonyos-guides...限制条件
可以使用首选项持久化,参考链接如下:
https://developer.huawei.com/consumer/cn/doc/harmonyos-guides...