var fn01 = function(){ alert("settimeout")}var fn02 = function(){ alert("setinterval")}setTimeout(fn01,1000);setInterval(fn02,1000);//你运行下这个示例即知道了