摘要:
1 Array.prototype.removeItem = function (target) { 2 var elIndex; 3 for(elIndex in this){ 4 if(this[elIndex] == target) break; 5 } 6 if (!this.hasOwnProperty(elIndex)) return; 7 if (isNaN(parseInt(elIndex)) || !(this instanceof Array)) delete this[elIndex]; 8 else this.splice(elIndex, 1); 9 };10 11. 阅读全文
posted @ 2012-09-21 04:12
EKO.KL
阅读(304)
评论(0)
推荐(0)

浙公网安备 33010602011771号