<div class="codetitle"> <span><a style="CURSOR: pointer" data="3522" class="copybut" id="copybut3522" onclick="doCopy('code3522')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code3522"> <br><script type="text/javascript"> <BR>var a="1"; <BR>var b=false; <BR>var c="dd"; <BR>var d={ <BR>valueOf:function(){return -1} <BR>}; <BR>alert(a++);//输出 1 说明后置操作符是想执行语句用的是原始值; <BR>alert(a);//输出 2 说明后置语句执行完原始值之后再去改变该值; <BR>alert(++b); //输出 1; <BR>alert(c++);//输出NaN; <BR>alert(d++);//输出 -1; <BR></script> <br> </div>