Commit 203375ba authored by 范雪寒's avatar 范雪寒

feat: setinterval

parent ee34caf6
......@@ -29,6 +29,7 @@ cc.Class({
}
},
_intervalIds: null,
_timeoutIds: null,
_imageResList: null,
_audioResList: null,
......@@ -38,6 +39,7 @@ cc.Class({
this._audioResList = [];
this._animaResList = [];
this._timeoutIds = [];
this._intervalIds = [];
},
_designSize: null, // 设计分辨率
......@@ -363,6 +365,7 @@ cc.Class({
itemfirst.y = 0;
item.getComponent(cc.RichText).string = str2;
}, 30);
this._intervalIds.push(inter);
}, 4100));
// setTimeout(() => {
// //全部变大
......@@ -852,5 +855,8 @@ cc.Class({
this._timeoutIds.forEach(id => {
clearTimeout(id);
});
this._intervalIds.forEach(id => {
clearInterval(id);
});
},
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment