Commit 7e19cd8b authored by 范雪寒's avatar 范雪寒

feat: setTimeout

parent d2330e49
...@@ -16,7 +16,7 @@ cc.Class({ ...@@ -16,7 +16,7 @@ cc.Class({
// 生命周期 // 生命周期
onDestroy() { onDestroy() {
if(this.timeA){ if (this.timeA !== undefined) {
clearTimeout(this.timeA); clearTimeout(this.timeA);
} }
}, },
......
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