<div class="codetitle"> <span><a style="CURSOR: pointer" data="49796" class="copybut" id="copybut49796" onclick="doCopy('code49796')"><u>复代码</u></a></span> 代码如下:</div> <div class="codebody" id="code49796"> <br>function ClearNullArr(arr){ <br>for(var i=0 ,len=arr.length;i<leni ){ <br>if(!arr[i]||arr[i]==''||arr[i] === 정의되지 않음){ <br>arr .splice(i,1); <br>렌--; <br>저는--; <br>} <br>} <br>return arr; <br>} <br> </div>