我在一个网站上工作,我已经安装了 Keiths Woods 的 jQuery 倒计时。它在 Chrome 上运行良好,但在 IE、Mozilla、iPad 和 iPhone 上却无法运行。倒计时一直到 2012 年 1 月 10 日。它显示 72 天、7 小时等。在其他浏览器上,它显示NaN
天数、NaN
小时数等。
我有以下 HTML:
<html>
<head>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="jquery.countdown.min.js"></script>
<script type="text/javascript" src="scripts.js"></script>
<link rel="stylesheet" type="text/css" href="style.css" media="screen" />
<link rel="stylesheet" type="text/css" href="jquery.countdown.css" media="screen" />
</head>
<body>
<div class="body">
<div class="countdown"></div>
<div class="logo"></div>
</div>
</body>
</html>
里面scripts.js
我有:
$(document).ready(function(){
var date = new Date('10.1.2012');
$('.countdown').countdown({until: date , format: 'DHMS'});
});
有什么问题jquery.countdown.min.js
?我不知道该怎么做。