new Date("2018-05-12 12:12:12") iOS返回空

发布于 8 年前作者 weilei9631 次浏览最后编辑 8 年前来自 ask

new Date(“2018-05-03 12:12:12”)

模拟器、安卓上返回时间 Thu May 03 2018 12:12:12 GMT+0800 (CST)

苹果上 返回null

new Date(“2018-05-12”)

模拟器、安卓、苹果上返回时间 ,没有问题

1 回复
yangxu
yangxu1 楼6 年前

苹果的new Date(“2018/05/03 12:12:12”)   了解一下 https://blog.csdn.net/zhangdaren/article/details/80298219