jquery extend vs angular extend
问题 What is the difference between these two extend functions? angular.extend(a,b); $.extend(a,b); While the jquery.extend is well documented the angular.extend lacks details and the comments there provide no answers. (https://docs.angularjs.org/api/ng/function/angular.extend). Does angular.extend also provide deep copy? 回答1: angular.extend and jQuery.extend are very similar. They both do a shallow property copy from one or more source objects to a destination object. So for instance: var src =