![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
时间
muzi187
这个作者很懒,什么都没留下…
展开
-
js输出当前系统时间
当前系统时间 显示时间的位置window.onload = function(){ showTime();}function checkTime(i){ if (i<10) { i="0" + i; } return i;}function showTime(){ var now=new Date(); var year=now.getFullYear(原创 2017-05-13 17:12:58 · 1062 阅读 · 0 评论 -
js高考倒计时
高考倒计时 距离2017年高考还有天 window.onload = function(){ var timedate= new Date("6,6,2017"); var now = new Date(); var date = timedate.getTime() - now.getTime(); //得出的为毫秒原创 2017-05-13 17:33:33 · 3278 阅读 · 0 评论 -
js实现限时抢倒计时
团购——限时抢还剩 function FreshTime(){ var endtime=new Date("2017/5/15,12:20:12");//结束时间 var nowtime = new Date();//当前时间 var lefttime=parseInt((endtime.getTime()-nowtime.getTime())/1000); d=par原创 2017-05-15 10:17:50 · 1211 阅读 · 0 评论