es5倒计时插件

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

 24092  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日历展示,选取时间控件(原创)

该插件可以展示日历并监听点击事件,同时可以在input 框调用日期选择控件。
  日期和时间
 36585  301

jQuery多功能秒表闹钟计时器插件

jQuery多功能秒表闹钟计时器插件
  日期和时间
 56101  355

简易日期时间插件jQuery Timepicker v1.6.3版

一款汉化后的时间日期插件,可以根据需求自我调整样式
  日期和时间
 37595  339

带节假日设置的日历

带节假日设置的日历
  日期和时间
 104167  442

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

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