HarmonyOS 鸿蒙Next 调用持久化存储后的Date方法getTime()出现报错 Error message: is not callable Stacktrace: at anonymous (entry/src/main/ets/views/HomeView.et)
HarmonyOS 鸿蒙Next 调用持久化存储后的Date方法getTime()出现报错 Error message: is not callable Stacktrace: at anonymous (entry/src/main/ets/views/HomeView.et)
调用持久化存储后的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)
更多关于HarmonyOS 鸿蒙Next 调用持久化存储后的Date方法getTime()出现报错 Error message: is not callable Stacktrace: at anonymous (entry/src/main/ets/views/HomeView.et)的实战系列教程也可以访问 https://www.itying.com/category-93-b0.html
PersistentStorage不支持对象数组,参考链接如下:
https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/arkts-persiststorage-V5#限制条件
可以使用首选项持久化,参考链接如下:
https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/data-persistence-by-preferences-V5
更多关于HarmonyOS 鸿蒙Next 调用持久化存储后的Date方法getTime()出现报错 Error message: is not callable Stacktrace: at anonymous (entry/src/main/ets/views/HomeView.et)的实战系列教程也可以访问 https://www.itying.com/category-93-b0.html