标签: angular typescript
如何将字符串中的日期转换为“ 12/27/2018”到打字稿中的“ 2018-12-27T00:00:00”。
const date = new Date(localDateTime);
localDateTime值为“ 12/27/2018”。上面的线第一次工作正常。但是第二次给出了无效的日期。这是在IE浏览器中观察到的。