标签:for prot return function his ret type || length
Array.prototype.remove = function (dx) {
if (isNaN(dx) || dx > this.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
}
标签:for prot return function his ret type || length
原文地址:https://www.cnblogs.com/jimmyLei/p/9059890.html