<script type="text/javascript">
var Obj = function(msg){
this.msg = msg;
this.shout = function(){
alert(this.msg);
}
this.waitAndShout = function(){
//隔五秒钟后执行上面的shout方法
}
}
</script>
var that = this;
setTimeout(function(){
that.shout();
},5000);