看了一個(gè)源碼,發(fā)現(xiàn)是這樣寫的,不知道用意是什么,感覺是廢話{_objects:[],add:function(){this._objects.push.apply(this._objects,arguments);....returnthis;}}
急求?。。。x.push.apply(xx,arguments)為什么要這樣寫代碼,有什么好處嗎求解答!
德瑪西亞99
2019-06-09 11:48:18