new Date(年-月)时间是8点

new Date('2018-02')获取的小时是8时
解决
new Date('2018-2')获取的小时是0时

原文地址:https://www.cnblogs.com/victory820/p/8493612.html