看了一個源碼,發(fā)現(xiàn)是這樣寫的,不知道用意是什么,感覺是廢話{_objects:[],add:function(){this._objects.push.apply(this._objects,arguments);....returnthis;}}
xx.push.apply(xx,arguments)為什么要這樣寫代碼,有什么好處嗎
躍然一笑
2019-04-27 17:16:59