<这个人很懒,什么也没有留下! />
1234567891011121314
var setTimer = function(fn, interval) { var recurse, ref; ref = {}; ref["continue"] = true; (recurse = function() { if (ref["continue"]) { ref.timeout = setTimeout((function() { fn(); recurse(); }), interval); } })(); return ref;}
1234
var clearTimer = function(ref) { ref["continue"] = false; clearTimeout(ref.timeout);}