0.0.2 • Published 5 years ago

oops_stamp v0.0.2

Weekly downloads
2
License
ISC
Repository
-
Last release
5 years ago

时间戳倒计时

oops 给一个姓罗的大弟开发的demo

参数

  • 时间戳 1554795598578
  • 回调函数 format => {} format对象

{ year : ****, month : ** , day : **, hour : **, minute : **, second : ** }

使用

const oops = require('oops_stamp')

let myFn = new oops(1554795598578, format => {
	// 你的逻辑
})
//启动倒计时
myFn.start()

//停止倒计时
myFn.end()
0.0.2

5 years ago

0.0.1

5 years ago