Javascript 如何在倒计时中设置目标日期
我有这个密码,我从 这将来自一个变量 顺便说一句,+1,3-1,29相当于2016年3月29日 提前谢谢 您必须尝试碳:Javascript 如何在倒计时中设置目标日期,javascript,php,html,timer,countdown,Javascript,Php,Html,Timer,Countdown,我有这个密码,我从 这将来自一个变量 顺便说一句,+1,3-1,29相当于2016年3月29日 提前谢谢 您必须尝试碳: <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"> <title>jQuery Countdown</title> <link rel="styleshee
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>jQuery Countdown</title>
<link rel="stylesheet" href="jquery.countdown.css">
<style type="text/css">
#defaultCountdown { width: 240px; height: 45px; }
</style>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script src="jquery.plugin.js"></script>
<script src="jquery.countdown.js"></script>
<script>
$(function () {
var austDay = new Date();
austDay = new Date(austDay.getFullYear() + 1, 3 - 1, 29);
$('#defaultCountdown').countdown({until: austDay});
$('#year').text(austDay.getFullYear());
});
</script>
</head>
<body>
<div id="defaultCountdown"></div>
</body>
</html>
austDay = new Date(austDay.getFullYear() + 1, 3 - 1, 29);