UNPKG
count-time-down
Version:
latest (1.0.5)
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
A helpful countdown class, 一个实用的的倒计时类
github.com/CN-Tower/count-time-down
CN-Tower/count-time-down
count-time-down
/
test
/
test.ts
13 lines
(10 loc)
•
280 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
/** * run this demo: npm run test:ts */
import
CountDown
from
'..'
;
// const cd = new CountDown();
// cd.time = 10000;
// cd.cdType = 's';
// cd.onTick = cd => console.log(cd);
// cd.start();
new
CountDown
(
10000
, {
interval
:
50
},
(
{ss, SSS}
) =>
console
.
log
(
`
${ss}
${SSS}
`
));