setTimeout的优化

From http://www.jb51.net/article/26679.htm