<div class="codetitle"> <span><a style="CURSOR: pointer" data="54896" class="copybut" id="copybut54896" onclick="doCopy('code54896')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code54896"> <br>function doSz{ <br><br>var kzly==["a","a","c","a","b"]; <br><br>for(var i=0;i<kzly.length>var targetNode = kzly[i]; <br>for (var j=0; j<i j>if(targetNode == kzly[j]){ <br>kzly.splice(i,1); <br>kzlymc.splice(i,1); <br>//alert(arr); <br>break; <br>} <br>} <br>} <br><br>} <br></i></kzly.length> </div>