setTimeout方法//不建议传递字符串
setTimeout(alert("hello"),1000);
//推荐调用方式
setTimeout(function(){alert("hello");},1000);