美文网首页
new Date().getDay()在不同时区的

new Date().getDay()在不同时区的

作者: 一只机智的蜗牛 | 来源:发表于2019-07-08 13:51 被阅读0次

new Date("2019-05-29").getDay() 在不同时区得到的值不一样

new Date("2019/05/29").getDay() 在不同时区得到的值是一样的

苹果手机上new Date("2019/05/29").get等等()是可以解析的,其他格式(2019-05-29/2019.05.29)的解析不了

相关文章

网友评论

      本文标题:new Date().getDay()在不同时区的

      本文链接:https://www.haomeiwen.com/subject/hpgphctx.html