Git Product home page Git Product logo

countdown's Introduction

Countdown Component

先上效果图

image

项目启动方法

  1. 运行:npm install 安装热更新等依赖
  2. 运行:npm run server 开启热更新并打开网页,npm会运行package.json中的"script"属性中的"server"对应的内部语句,即:"webpack-dev-server --open"
  3. 当运行是发生错误显示: “ERROR in Entry module not found: Error: Can't resolve 'babel-loader' in.........”,这时则只需要运行:"npm install babel-loader --save-dev"即可

React的倒计时组件,基本用法:

仅仅需要在你的代码中插入如下示例代码即可 <CountdownComponent endTime={"2020/01/01 18:30:00"} />

Usage👇

  • <CountdownComponent endTime={"2017/09/19 18:30:00"} myCorrNowTime={"2017/09/19 18:29:50"} timeoutFn={timeoutFn} />
  • <CountdownComponent endTime={"2030/09/19 18:30:00"} />
  • <CountdownComponent second={"10"} timeoutFn={timeoutFn} />
  • <CountdownComponent second={"100"} />

countdown's People

Contributors

j10240221 avatar

Stargazers

alison avatar JustinLiu avatar  avatar Troy avatar

Watchers

James Cloos avatar

Forkers

teachat8 racoonwr

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.