es5倒计时插件

所属分类:输入-日期和时间

 28802  291  查看评论 (0)
分享到微信朋友圈
X
es5倒计时插件 ie兼容7
// 不指定显示元素的都会打印返回值,
// 倒计时类型,返回剩余时间。
console.log(countDown().init());
console.log(countDown().init('10m33s'));
console.log(countDown().init([2017, 9, 20]));
//第一个参数字符串形式,指定倒计时时间。可以有回调函数
//可指定参数 d(天)h(天)m(分)s(秒)  顺序可以不固定,类似格式包括 '1d2h3m2s','2h30s2m','3m2h1s1d'
console.log(countDown().init('55m', {
    hh: box7,
    min: box8,
    ss: box9
}, function() {
    alert(1)
}));
//第一个参数是数组形式,按系统时间指定倒计时。
//最少传入年月,不能跳着传参数,依次是年,月,日,时,分,秒,微秒
console.log(countDown().init([2017, 9, 1, 9, 21], {
    hh: box1,
    min: box2,
    ss: box3
}, function() {
    alert(1)
}));
//不指定倒计时默认返回参数是系统当前时间。
console.log(countDown().init({
    hh: box4,
    min: box5,
    ss: box6
}));
//非倒计时全部可用的参数
console.log(countDown().init({
    yy: box10, //年
    mo: box11, //月
    dd: box12, //日
    hh: box13, //时
    min: box14, //分
    ss: box15, //秒
    ww: box16 //星期
}));

setInterval(function() {
    console.log(countDown().init())
}, 1000)
相关插件-日期和时间

jQuery日期时间选择插件jHsDate

一个简单的jQuery日期时间选择插件
  日期和时间
 47870  334

圆形时间进度条-倒计时

html5 + css3 打造的圆形时间倒计时进度条
  日期和时间
 56452  348

jQuery双日历选择

jQuery实现双日历选择插件double-date.js
  日期和时间
 43647  342

jquery获取一年后的日期(原创)

利用jeDate插件 当选中一个时间之后 自动生成一个为期一年的时间
  日期和时间
 30821  201

讨论这个项目(0)回答他人问题或分享插件使用方法奖励jQ币 评论用户自律公约

😃
  • 😀
  • 😉
  • 😥
  • 😵
  • 😫
  • 😘
  • 😡
  • 👍
  • 🌹
  • 👏
  • 🍺
  • 🍉
  • 🌙
  • 💖
  • 💔
😃
  • 😀
  • 😉
  • 😥
  • 😵
  • 😫
  • 😘
  • 😡
  • 👍
  • 🌹
  • 👏
  • 🍺
  • 🍉
  • 🌙
  • 💖
  • 💔
取消回复