[英]JavaScript countdown doesn't work in Safari
I am using countdown.我正在使用倒计时。 For unknown reason the countdown doesn't appear in Safari.
由于未知原因,倒计时没有出现在 Safari 中。 It does work perfectly fine in Chrome, Opera and IE.
它在 Chrome、Opera 和 IE 中运行良好。 Link to the countdown can be found here Did someone experience the same issue?
可以在这里找到倒计时的链接 有人遇到过同样的问题吗?
Please find link to my JS Countdown: https://gist.github.com/anonymous/048fa888e04b0981b207c48d674272fa请找到我的 JS 倒计时链接: https : //gist.github.com/anonymous/048fa888e04b0981b207c48d674272fa
The problem is in your main.js .问题出在您的 main.js 中。 Safari cannot create valid date object with 24:00:00.
Safari 无法使用 24:00:00 创建有效的日期对象。 Try this :
尝试这个 :
var endDate = "May 01, 2016 00:00:00";
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.