摘要: /****用来判断数组是否包含某个元素*@authorniaoren2011-12-27*/Array.prototype.S=String.fromCharCode(2);Array.prototype.in_array=function(e){varr=newRegExp(this.S+e+this.S);return(r.test(this.S+this.join(this.S)+this.S));}/***删除指定下标的元素**@authorniaoren2012-02-28*/Array.prototype.remove=function(index){if(isNaN(index) 阅读全文
posted @ 2012-02-28 18:12 DavidHHuan 阅读(372) 评论(0) 推荐(0) 编辑