js获取时区

129 阅读1分钟
Intl.DateTimeFormat().resolvedOptions().timeZone
'UTC+'+ (0 - (new Date()).getTimezoneOffset()/60)