new Date()

287 阅读1分钟

如果new Date() 传入参数为yyyy-MM-dd 且天数补全了0时,会自动加上8小时。 而传入格式为 yyyy/MM/dd不会自动加上8小时