下面的代码执行后点击按钮会延迟3秒钟弹出一个警告框,主要演示了setTimeout的使用方法
Click the button to wait 3 seconds, then alert "Hello". Try it
Click the button to wait 3 seconds, then alert "Hello".
希望本文所述对大家的javascript程序设计有所帮助。