标签:
Array.prototype.remove = function(val) { var index = this.indexOf(val); if (index > -1) { this.splice(index, 1); } };
pubArray.remove(pubArray[i]);
javascript从数组中删除一个元素
原文地址:http://www.cnblogs.com/lyming/p/4468877.html