1
81041
2019-10-18 cc4059f9f5a2cd6766f4d888bd35d19f3827a053
1
2
3
4
5
6
7
8
9
10
11
12
var MyInterval = function () {
    this.timer = "";
};
MyInterval.prototype.start = function(callback, times) {
    this.timer = setInterval(function() {
        callback();
    }, times);
}
MyInterval.prototype.stop = function() {
    clearInterval(this.timer);
}
var myInterval = new MyInterval();