new Date() 烟雨朦胧 2020-01-16 287 阅读1分钟 如果new Date() 传入参数为yyyy-MM-dd 且天数补全了0时,会自动加上8小时。 而传入格式为 yyyy/MM/dd 时 不会自动加上8小时。