<div class="codetitle"> <span><a style="CURSOR: pointer" data="91093" class="copybut" id="copybut91093" onclick="doCopy('code91093')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code91093"> <br>window.onload=function(){ pd(11);} <br>function pd(number) <br>{ <br><br>if(number>5) <br>{number--; <br><br>pd(number); <br>alert("no"); <br>} <br>else <br>{ <br>alert("yes"); <br>} <br>} <br> </div> <br>结果是yes,no,no...... <br><br>递归的嵌套最后回归执行if语句内的内容