亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

頁(yè)面練習(xí)作業(yè)

Original 2019-01-23 22:18:05 248
abstract:<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Document</title> <script src="https://code.jquery.com/jquery-3.1.1.min.
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Document</title>
<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
<style type="text/css">
.box1{width: 800px;height: 600px;margin: 0 auto;background-color: #ccc;text-align: center;line-height: 600px;font-family: 微軟雅黑;}
</style>

</head>
<body>
<script type="text/javascript">
$(function(){
function Ro(){
var d=Date.parse("Feb 05,2019")
var data=new Date()
var dd=data.getTime()
var xj=Math.floor((d-dd)/1000)
var tian=Math.floor(xj/86400)
var shi=Math.floor(xj%86400/3600)
var feng=Math.floor(xj%3600/60)
var miao=Math.floor(xj%60)
$("span").text(tian+"天"+shi+"時(shí)"+feng+"分"+miao+"秒").css('color', '#CD919E');

}
        setInterval(Ro,1000);
})
</script>
<div>
        <div>
            2019年農(nóng)歷春節(jié)倒計(jì)時(shí):<span></span>
        </div>
    </div>
</body>
</html>





















<!-- <script type="text/javascript">
$(function(){
function Ro(){
var d=Date.parse("Feb 05,2019")//返回1970年1月1日至2019年5月4日的毫秒數(shù)
var data=new Date()
var dd=data.getTime()
var rd=Math.floor((d-dd)/1000)
var tian=Math.floor(rd /86400)
var shi=Math.floor(rd %86400/3600)
var feng=Math.floor(rd %3600/60)
var miao=Math.floor(rd %60)
$("span").text(tian+"天"+shi+"時(shí)"+feng+"分"+miao+"秒")
}


                setInterval(Ro,1000);      

})
</script> -->


Correcting teacher:天蓬老師Correction time:2019-01-24 08:56:21
Teacher's summary:setInterval(Ro,1000);, 如果到期了, 是不是還要清除掉這個(gè)定時(shí)器?

Release Notes

Popular Entries