var d = new Date("2017-08-11 12:00:00");
发现在iOS中不兼容,返回valid Date。
IOS中不支持 - 连接日期
需要写成
var d = new Date("2017-08-11 12:00:00".replace(/-/g, "/")),这样来兼容ios
new Date()设置日期在IOS的兼容问题
猜你喜欢
转载自www.cnblogs.com/raind/p/9957719.html
今日推荐
周排行