The use of settimeout method and parameters in js.
For simple use, see w3school
There is no parameter call in it,
Example:
My current problem is Between them, only the last one is sent back, think about it
The reason for the above error is that when time is triggered for execution, i=4, so although there are multiple But always the last
var timerr ;
function xunhuanlian(points,value){
if(replayi
AddGuiJi(points[replayi],value);
replayi ;
timerr=setTimeout(function (){ xunhuanlian(points,value);},1000);
}
else{
replayi =0;
clearTimeout(timerr);
}
/* for ( var i=0;iAddGuiJi(points[i],value);
//var t=setTimeout(function(){ AddGuiJi(points[i],value) ;},2000*i)
} */
}