倒计时——从10倒数到0,点击按钮会还原倒计时
[removed]
var oT = document.getElementById("txt");
var oB = document.getElementById("btn");
var timer;
//封装一个开始倒数的函数
function star
代码如下: [removed] $(function(){ countDown(“2015/9/8 11:11:59″,”#colockbox1”); }); function countDown(time,id){ var day_elem = $(id).find(‘.day’); var hour_elem = $(id).find(‘.hour’); var minute_elem = $(id).find(‘.minute’); var second_elem = $(id).find