function mySetInterval(fn, milliSec,count){ function interval(){ if(typeof count==='undefined'||count-->0){ setTimeout(interval, milliSec); try{ fn() }catch(e){ t = 0; throw e.toString(); } } } setTimeout(interval, milliSec) }
function mySetInterval(fn, milliSec,count){ function interval(){ if(typeof count==='undefined'||count-->0){ setTimeout(interval, milliSec); try{ fn() }catch(e){ t = 0; throw e.toString(); } } } setTimeout(interval, milliSec) }