From ab32fb611e4a75623c0b80fbd8465e43fc484cf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=87=E5=A4=A9?= Date: Wed, 8 Aug 2018 20:21:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E7=BB=84=E7=9A=84.pushArray=E6=96=B9?= =?UTF-8?q?=E6=B3=95=E5=A2=9E=E5=8A=A0=E8=BF=87=E6=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/07-collection.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { //移除第一个等于给定值的元素