Laya.timer.loop(5000, this, function(){ //我想在这里停止当前这个定时器,我这个方法没有单独定义函数名。})
https://ask.layabox.com/question/534参考这个
qian 你没明白意思,你给的还是个还是创了个方法的,他要的是没在创方法就在这个定时器里面把这个定时器给停了,不用指定一个定时器,定时器里面停止自己
Laya.timer.loop(5000,this,function a(){ Laya.timer.clear(this,a); });