//不建议传递字符串
setTimeout(alert("hello"),1000);
//推荐调用方式
setTimeout(function(){alert("hello");},1000);
posted on 2015-08-04 11:27 源人 阅读(336) 评论(0) 编辑 收藏 举报