phpcn_u15822017-05-15 17:11:36
angular.extend(dst, src); If the same attribute is used, dst will be overwritten by src
我想大声告诉你2017-05-15 17:11:36
Just to add
res = angular.merge(obj1, obj2);
res = angular.extend(dst, src);
res = Object.assign({}, obj1, obj2);
Both are ok, generally use the first one