JS时间格式化 使用瑞典的日期时间格式输出,时区依旧是中国上海时区 let d = new Date(); d.toLocaleString('sv-SE',{ timeZone: 'Asia/Shanghai' });