不幸的是,有些浏览器不支持使用Intl.DateTimeFormat的某些语言环境。在我的例子中,'kk‘locale In Chrome (https://source.chromium.org/chromium/chromium/src/+/master:third_party/icu您可以在控制台中测试您的语言环境: Intl.DateTimeFormat.supported
我需要在特定的地区设置时间戳(不是utc,不是浏览器区域设置)。但我也必须有这个时间的毫秒部分。我的第一次尝试是使用second:'numeric' API的DateTimeFormat: 'de-de', // german as an是否有比使用formatToParts()和检测丢失的毫秒并将其