js获取时区

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