Use setInterval instead of setTimeout

Use setInterval instead of setTimeout

check out codes: http://jsfiddle.net/GustvandeWal/295jqqqb/

原文地址:https://www.cnblogs.com/vampiredaniel/p/6197163.html