, function showTime(){ var today = new Date(); document.write(today.toString()); setTimeout(showTime, 1000); //这里调用函数本函数 } 这样在showTime函数的最后一行又调用showTime函数自身,不会形成无穷递归的