手机进入待机状态后js setInterval执行的函数不是预期结果
_autoMove : function(){
var that = this,
dis = -1;
this._auto = setInterval(function(){
that._setTransTime(that._slider,'.3');
that._sliderMoving = true;
that._setVisualItem(dis);
that._changeItem(dis);
},3000);
},
代码大概是这样,在正常情况下程序按照期待的结果运行,但手动待机或自动进入待机状态后,运行结果就不正常了,不知有人遇到过否?求解答
暴走的骚动
10 years, 2 months ago