Array.prototype.remove = function(val) {
var index = this.indexOf(val);
if (index > -1) {
this.splice(index, 1);
}
};
pubArray.remove(pubArray[i]);
时间: 2024-11-05 19:41:32
Array.prototype.remove = function(val) {
var index = this.indexOf(val);
if (index > -1) {
this.splice(index, 1);
}
};
pubArray.remove(pubArray[i]);