Classic problem: transfer function parameters to setTimeout

zhaozj2021-02-16  88

Maybe you have passed the parameters in SetTimeout.

SetTimeout ("Pass (" Argu ")", 1000)

This can only pass the string, which is not powerful to pass Object, it takes a lot of articles. However, don't forget, the first parameter can be function !!!

Look at the following code to implement the Function Maximum parameters inside