JavaScript實現數組去除重複

<script language="javascript" type="text/javascript"> Array.prototype.strip=function() { if(this.length<2) return [this[0]]||[]; var arr=[]; document.write("原數組"+this+"<br/>"); document.writ
相關文章
相關標籤/搜索