Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including kenyang-countdown-vue with all npm packages installed. Try it out:

var kenyangCountdownVue = require("kenyang-countdown-vue")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

kenyang-countdown-vue v1.0.1

开发的过程中,很多时候我们需要用到倒计时,特别是商城的开发,这个功能虽然不复杂,但是耗时间,没调试一次就要等待出现bug的时间。所以我参照天猫的首页以及聚划算设计了一个基于Vue的倒计时。这个插件可以设置时分,一般倒计时是24小时以内,一分钟以上(毕竟不是秒表),所以暂时没有天数和秒数的设置。除了时分设置,还有背景色、尺寸、是否实时返回时间等设置。

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free