diff --git a/src/07-collection.js b/src/07-collection.js index 8539b26..827182b 100644 --- a/src/07-collection.js +++ b/src/07-collection.js @@ -31,7 +31,7 @@ var newProto = { return this }, pushArray: function(arr) { - return this.push.apply(this, arr) + return this.push.apply(this, toJson(arr)) }, remove: function(el) { //移除第一个等于给定值的元素