javascript
文章平均质量分 69
嗨帅
这个作者很懒,什么都没留下…
展开
-
【yoyo】点击切换图片
点击对应按钮显示对应图片 .btn{ width: 100px; color: red; font-size: 20px; background-color: yellow; display: inline-block; text-align: center; } .showDiv{ width: 400px; he原创 2017-08-30 09:38:57 · 295 阅读 · 0 评论 -
【yoyo】计算2018年1月1日距当天事件还剩多少天,多少小时,多少分钟,多少秒;
Document h1 { display: inline; color: red; } 距离2018年1月1日还有 小时 分钟 秒 setInterval(function(){ // 获取当前时间 var nowDate = new Date(); //获取当前事件距离1970年1月1日有多少秒 var nowTime = nowDate原创 2017-08-30 17:26:25 · 5116 阅读 · 0 评论