Array.prototype.remove = function(val) {
var index = this.indexOf(val);
if (index > -1) {
this.splice(index, 1);
}
};
pubArray.remove(pubArray[i]);
Array.prototype.remove = function(val) {
var index = this.indexOf(val);
if (index > -1) {
this.splice(index, 1);
}
};
pubArray.remove(pubArray[i]);
转载于:https://www.cnblogs.com/lyming/p/4468877.html