I would like to put
var minValue = 0;
if ( typeof callback == 'function' ) {
setTimeout( callback, minValue );
}
this code when I implement callback function with JavaScript.
But I've found that modern browsers and some old browsers
have different minimum timeout value.
I know that Zero cannot be minimum value.
What would be minimum value of setTimeout for
modern browsers and some old browsers for compatibility issues?
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…