setTimeout与setInterval的区别

setInterval 

   用于实时刷新,每3秒弹出一次

 

setTimeout

  只请求一次

猜你喜欢

转载自www.cnblogs.com/lmx217/p/12610950.html