Basic setTimeout() Example
Tip: you can use the ClearTimeout() function to clear any timer values previously stored.
More setTimeout() Examples
Or in a different way:
Or as a function:
<a></a>
案例:
<a>本文转自TBHacker博客园博客,原文链接:http://www.cnblogs.com/jiqing9006/p/3424215.html,如需转载请自行联系原作者</a>