*****计时器的一些运用*****
//计算1次的计时器,2秒后执行
this.scheduleOnce(function(){ this.doSomething(); },2);
//每隔5秒执行1次
this.schedule(function(){ this.doSomething(); },5);
//计算多次的计时器(1秒后,以0.1秒的执行间隔,执行10次)
this.schedule(function(){ this.doSomething(); },0.1,10,1);
this.unscheduleAllCallbacks(this);//停止某组件的所有计时器



相关文章:

  • 2021-07-27
  • 2022-01-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-19
  • 2021-12-10
  • 2022-12-23
猜你喜欢
  • 2021-12-30
  • 2022-12-23
  • 2022-12-23
  • 2021-08-17
  • 2022-01-07
  • 2022-12-23
  • 2021-12-26
相关资源
相似解决方案