https://github.com/xiaxiangfeng/count-down
一个js写的倒计时插件(A countdown plugin written by JS)
https://github.com/xiaxiangfeng/count-down
count-down countdown-javascript javascript javascript-library js ts typescript
Last synced: 8 days ago
JSON representation
一个js写的倒计时插件(A countdown plugin written by JS)
- Host: GitHub
- URL: https://github.com/xiaxiangfeng/count-down
- Owner: xiaxiangfeng
- Created: 2018-03-02T03:25:15.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2022-07-22T08:38:01.000Z (over 3 years ago)
- Last Synced: 2025-08-26T02:02:48.197Z (7 months ago)
- Topics: count-down, countdown-javascript, javascript, javascript-library, js, ts, typescript
- Language: JavaScript
- Homepage:
- Size: 16.6 KB
- Stars: 6
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 倒计时插件
> 倒计时插件
## 从NPM下载包
``` bash
# 暂时未上传
npm i count-down
```
## 使用方式
``` js
import { clock } from './clock'
// 开始
const clockObj = clock('df_clock', '2018/01/01 00:00:00').start()
// 停止
clockObj.stop()
```
## 创建演示实例
``` bash
# 打包编译实例代码
# 用浏览器打开example文件夹下的index.html
npm run build
```
## 创建类库
``` bash
# 打包类库(把ts编译成es5代码)
npm run prepublish
```
## 演示地址
http://xiaxiangfeng.github.io/count-down/