JS引用:
<script src="http://js.jrjimg.cn/lib/ui/countdown-min.js"></script>
JS:
new JRJ.ui.CountDown({ '$ele': $('#countdown1'), //默认tpl,由builder重新指定HTML. 'tpl': '<span><i class="fs12 col999">剩余</i></span><span class="fs22 colred fma">{{hour}}<i class="fs12 col999">小时</i></span><span class="fs22 colred fma">{{min}}<i class="fs12 col999">分</i></span><span class="fs22 colred fma">{{sec}}<i class="fs12 col999">秒</i></span>', 'deadline': '2016-6-21 12:21:10' });
HTML
<div id="countdown1"></div>
效果