Pass parameters to a function/expression called within setTimeout
javascript's setTimeout(aFunction, timeout); Sometimes we need to pass parameters to aFunction. To do this, we must use 'closure': setTimeout(funciton(){aFunction(parameter)}, timeout);
No comments:
Post a Comment