Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何将 @js-joda/core 库中的 LocalDateTime 对象转换为标准的 JavaScript Date 对象?
正如@RobG 在评论 import convert from '@js-joda/core' 中提到的,您可以使用它 let date = convert(ZonedDateTime.now()).toDate();来获取 js 日期
let date = convert(ZonedDateTime.now()).toDate();