解决方案.使用systemDateTime.getTime获取当前时间,参考文档:https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/js-apis-date-time-V5
解决方案.
使用systemDateTime.getTime获取当前时间,参考文档:https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/js-apis-date-time-V5