首页 > 自己写的倒计时练习,Chrome可以正常运行,到Firefox及Safari上就不行了,啥原因?

自己写的倒计时练习,Chrome可以正常运行,到Firefox及Safari上就不行了,啥原因?

贴下在线地址:url


自己找到问题出在哪了,字符串转为日期出现错误。

var timedate = new Date(end);

改为

var timedate = new Date(Date.parse(end.replace(/-/g,"/")))
【热门文章】
【热门文章】