摘要: ``` 重复值不添加 Array.prototype.push_unique = function () { for (var i = 0; i < arguments.length; i++) { var ele = arguments[i]; if (this.indexOf(ele) == -1) { this.push(ele); } } }; 删除指定值 Array.prototype. 阅读全文
posted @ 2019-11-19 13:33 ^sun^ 阅读(2060) 评论(0) 推荐(0) 编辑