angular.copy()可以复制一个对象或数组.
使用方法:
data = self.data = angular.copy(self.currentTemplate);
复制self.currentTemplate并赋值给data;
angular.copy()可以复制一个对象或数组.
使用方法:
data = self.data = angular.copy(self.currentTemplate);
复制self.currentTemplate并赋值给data;
转载于:https://www.cnblogs.com/ncloud/p/7553611.html