angular.copy,克隆数据
angular.copy()可以复制一个对象或数组.
使用方法:
data = self.data = angular.copy(self.currentTemplate);
复制self.currentTemplate并赋值给data;
- 上一篇 »JavaScript深度克隆,递归
- 下一篇 »javascript对象的深度克隆
相关推荐
angular.copy, 取消angular的数据双向绑定
网址:https://www.tslang.cn/docs/tutorial.html
时间:2023-11-07 17:34