ios中 newDate(‘-08-01 12:12:12’) 的问题
"-“分隔符的时间字符串不识别,但是安卓能识别。所以在ios中要用到Date对象,并且传入的时间字符串中年月日是以”-"来分隔,返回值就是null。
解决方案:在官方没有修复这个问题的情况下,所有的时间字符串中年月日分隔符,请尽量,不,应该是全部用"/"来代替。
把 -08-01 12:12:12转换成 /08/01 12:12:12
startTime:changeDate(`${item.year}-${item.month}-${item.day} ${time}:00:00`),startTime:changeDate(`${item.year}/${item.month}/${item.day} ${time}:00:00`),