LayaAir2.0 内置函数 constructor(); //构造函数 //每10毫秒旋转一次 Laya.timer.loop(10,null,function(){ box.transform.rotate(vect,true,false); });