JSPM

countdown-cbd-roywu

1.1.2
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 3
    • Score
      100M100P100Q30746F
    • License ISC

    车巴达前端倒计时通用模块

    Package Exports

    • countdown-cbd-roywu

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (countdown-cbd-roywu) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    车巴达前端通用模块之倒计时

    正式版

    ##API

    countDownByDate 两个输入参数,开始时间和结束时间,不输则默认为当前时间

    countDownBySecond 一个输入参数,倒计时的秒数

    surplus 实时参数对象

    使用示例 example

    import { countDownBySecond, surplus } from "countdown-cbd-roywu"; countDownBySecond(20); let pid = setInterval(() => { if(surplus.hour == '00' && surplus.minute == '00' && surplus.second == '00') { clearInterval(pid); } console.log(surplus); }, 1000);