angular.copy()克隆数据

angular.copy()可以复制一个对象或数组.

使用方法:

data = self.data = angular.copy(self.currentTemplate);
复制self.currentTemplate并赋值给data;
posted @ 2017-09-19 19:28  芒果加冰  阅读(790)  评论(0编辑  收藏  举报