天天看点

Angularjs实现值拷贝,不断开双向绑定

$scope.value= newValue; //直接用=号进行赋值操作,会导致双向绑定断开
angular.copy(newValue,  $scope.value);//使用angular.copy可以实现值拷贝,不断开双向绑定