标签:blog io ar sp for java on div log
Array.prototype.deleteEle = function() { var newArr = this; for (var i = newArr.length - 1; i >= 0; i--) { var targetNode = newArr[i]; for (var j = 0; j < i; j++) { if (targetNode == newArr[j]) { newArr.splice(i, 1); break; } } } return newArr; }
调用:array.deleteEle ();
标签:blog io ar sp for java on div log
原文地址:http://www.cnblogs.com/objectboy/p/4164436.html