Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/78.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何使用倒计时jquery插件_Jquery_Countdown - Fatal编程技术网

如何使用倒计时jquery插件

如何使用倒计时jquery插件,jquery,countdown,Jquery,Countdown,我使用互联网上的资源。它只显示正确,不显示错误。这是我的密码 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <

我使用互联网上的资源。它只显示正确,不显示错误。这是我的密码

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
        <head>
            <link rel="stylesheet" type="text/css" href="style.css" />
            <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js" type="text/javascript"></script>
            <script src="jquery.countdown.packed.js" type="text/javascript"></script>
            <script type="text/javascript">
                $(function () {
                    $('#countdown').countdown({until:$.countdown.UTCDate(-8, 2011,  1 - 1, 1), format: 'DHMS', layout: 
                        '<div id="timer">' + '<hr />'+
                            '<div id="timer_days" class="timer_numbers">{dnn}</div>'+
                            '<div id="timer_hours" class="timer_numbers">{hnn}</div>'+ 
                            '<div id="timer_mins" class="timer_numbers">{mnn}</div>'+
                            '<div id="timer_seconds" class="timer_numbers">{snn}</div>'+
                            '<div id="timer_labels">'+
                                '<div id="timer_days_label" class="timer_labels">days</div>'+
                                '<div id="timer_hours_label" class="timer_labels">hours</div>'+
                                '<div id="timer_mins_label" class="timer_labels">mins</div>'+
                                '<div id="timer_seconds_label" class="timer_labels">secs</div>'+
                            '</div>'+                           
                        '</div>'                      
                    });
                });
            </script>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
        <title>Untitled Document</title>
    </head>
    <body>
        <div id="countdown"></div>
    </body>
</html>

$(函数(){
$(“#倒计时”).countdown({until:$.countdown.UTCDate(-8,2011,1-1,1),格式:“DHMS”,布局:
“+”
+ “{dnn}”+ {hnn}'+ “{mnn}”+ “{snn}”+ ''+ “天”+ “小时”+ “分钟”+ “秒”+ ''+ '' }); }); 无标题文件
这就是结果


它只显示零值,不显示倒计时

您的截止日期是否在过去?文档中说,一旦截止日期过去,倒计时将显示所有零。

你确定jquery.countdown.packed.js确实加载到页面中了吗?因为2011年1月1日已经过去了?