This article mainly introduces the settimeout method and parameters in js. Friends who need it can refer to the use of the settimeout method and parameters in js.
Simple use, see w3school
There is no parameter call,
Example:
Copy codeThe code is as follows:
My current problem is that between multiple ones, only the last one is returned. Think about it
Copy codeCode As follows:
/* for (var i=0;i Copy after login
The reason for the above error is that when time is triggered for execution, i=4, so although there are multiple ones, it is always the last one
Solution
Copy codeThe code is as follows:
var timerr; function xunhuanlian(points,value){ if(replayi Copy after login
For more articles related to adding parameters to the settimeout method in js, please pay attention to the PHP Chinese website!