读书人

setTimeout()跟setInterval()的区别

发布时间: 2012-11-14 10:12:19 作者: rapoo

setTimeout()和setInterval()的区别

setInterval is best for animations that continue for an indefinite time (for instance, until the user does something). setTimeout, on the other hand, is best suited for animations that have a fixed start and end point.

读书人网 >Web前端

热点推荐