Skip to content

Latest commit

 

History

History
38 lines (28 loc) · 557 Bytes

README.md

File metadata and controls

38 lines (28 loc) · 557 Bytes

倒计时插件

倒计时插件

从NPM下载包

# 暂时未上传
npm i count-down

使用方式

import { clock } from './clock'
// 开始
const clockObj = clock('df_clock', '2018/01/01 00:00:00').start()
// 停止
clockObj.stop()

创建演示实例

# 打包编译实例代码
# 用浏览器打开example文件夹下的index.html
npm run build

创建类库

# 打包类库(把ts编译成es5代码)
npm run prepublish

演示地址

http://xiaxiangfeng.github.io/count-down/