不想每次用倒计时,都现写代码,比较烦,这里记一下,也顺便分享一些倒计时简单的逻辑. 如果你有更简单方便的代码,可以分享给大家. var method = { countdownObj: { timer: null, changeTime: 0, }, countdown: function(long, back) { var that = this; if (that.countdownObj.timer) { clearInterval(that.countdownObj.timer); }…