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.