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.
我想以如下格式获取当前时间:
9:00 PM
应采用 AM/PM 格式并基于用户时区。
有一些用于格式化 JavaScript 日期的好库。
我在 Matt Kruse 的作品中运气不错
Javascript 库主页