This repository has been archived on 2023-08-29. You can view files and clone it, but cannot push or open issues/pull-requests.
yutent
/
anot.js
Archived
1
0
Fork 0

数组的.pushArray方法增加过滤

1.x
宇天 2018-08-08 20:21:09 +08:00
parent 6d61e12c58
commit ab32fb611e
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ var newProto = {
return this return this
}, },
pushArray: function(arr) { pushArray: function(arr) {
return this.push.apply(this, arr) return this.push.apply(this, toJson(arr))
}, },
remove: function(el) { remove: function(el) {
//移除第一个等于给定值的元素 //移除第一个等于给定值的元素