摘要: 1、var ArrayX = [0];//判断元素是否在数组里Array.prototype.inArray = function(e) { for(i=0;ithis.length){return false;} for(var i=0,n=0;i<this.length;i++) { if(this[i]!=this[dx]) { this[n++]=this[i] } } this.length-=1 }使用方法:ArrayName.remove(xiabiao);3、//获取元素在数组中的位置function searchKeys(needle... 阅读全文
posted @ 2013-06-24 15:36 白*开*水 阅读(151) 评论(0) 推荐(0) 编辑