请帮我。我试图弄清楚为什么这个倒计时不起作用......
我正在使用这个网站上的这个 Jquery 脚本 http://keith-wood.name/countdown.html
我正在使用其回调选项卡中的第三个示例
我的代码:
<html>
<head>
<title>jQuery Countdown</title>
<link rel="nofollow" type="text/css" href="https://justpaste.it/redirect/1ytp/http://keith-wood.name/css/jquery.countdown.css">
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript" src="http://keith-wood.name/js/jquery.countdown.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('#expireMessage').countdown({
var shortly
until: shortly,
expiryText: '<div class="over">It\'s all over</div>'});
$('#expireMessageStart').click(function() {
alert("hi");
shortly = new Date();
shortly.setSeconds(shortly.getSeconds() + 5.5);
$('#expireMessage').countdown('option', {until: shortly});
});
});
</script>
</head>
<body>
<div id="expireMessage"></div>
<span id="expireMessage" class="countdown"></span>
<button type="button" id="expireMessageStart">Start</button>
</body>
</html>
谁能帮我运行这个倒计时。